protected function OnSuccess()
    {
        $action = $this->member->Exists() ? Action::Update() : Action::Create();
        $this->member->SetName($this->Value('Name'));
        $this->member->SetEMail($this->Value('EMail'));
        $this->SetPassword();
        $this->member->Save();
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportMemberAction($thos->member, $action);
        if ($this->groupsExist && $this->CanAssignGroup())
        {
            $this->SaveGroups();
        }
        Response::Redirect(BackendRouter::ModuleUrl(new MemberList()));
    }
protected function OnSuccess()
    {
        $action = $this->member->Exists() ? Action::Update() : Action::Create();
        $this->member->SetName($this->Value('Name'));
        $this->member->SetEMail($this->Value('EMail'));
        $this->SetPassword();
        $this->member->Save();
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportMemberAction($thos->member, $action);
        if ($this->groupsExist && $this->CanAssignGroup())
        {
            $this->SaveGroups();
        }
        Response::Redirect(BackendRouter::ModuleUrl(new MemberList()));
    }
protected function OnSuccess ( ) { $ action = $ this -> member -> Exists ( ) ? Action :: Update ( ) : Action :: Create ( ) ; $ this -> member -> SetName ( $ this -> Value ( 'Name' ) ) ; $ this -> member -> SetEMail ( $ this -> Value ( 'EMail' ) ) ; $ this -> SetPassword ( ) ; $ this -> member -> Save ( ) ; $ logger = new Logger ( self :: Guard ( ) -> GetUser ( ) ) ; $ logger -> ReportMemberAction ( $ thos -> member , $ action ) ; if ( $ this -> groupsExist && $ this -> CanAssignGroup ( ) ) { $ this -> SaveGroups ( ) ; } Response :: Redirect ( BackendRouter :: ModuleUrl ( new MemberList ( ) ) ) ; }
Saves the user
Saves the user