Zepi/Web/AccessControl/src/EventHandler/Administration/EditUser.php
protected function processFormData(WebRequest $request, Response $response, User $user)
    {
        $result = $this->layout->validateFormData($request, $response, function ($formValues) use ($user) {
            return $this->validateData(
                $user, 
                $formValues['required-data.username'],
                $formValues['required-data.password'],
                $formValues['required-data.password-confirmed']
            );
        });
        
        if ($result == Form::DATA_VALID) {
            $result = $this->saveUser($request, $user);
        }
        
        return $result;
    }
protected function processFormData(WebRequest $request, Response $response, User $user)
    {
        $result = $this->layout->validateFormData($request, $response, function ($formValues) use ($user) {
            return $this->validateData(
                $user, 
                $formValues['required-data.username'],
                $formValues['required-data.password'],
                $formValues['required-data.password-confirmed']
            );
        });
        
        if ($result == Form::DATA_VALID) {
            $result = $this->saveUser($request, $user);
        }
        
        return $result;
    }
protected function processFormData ( WebRequest $ request , Response $ response , User $ user ) { $ result = $ this -> layout -> validateFormData ( $ request , $ response , function ( $ formValues ) use ( $ user ) { return $ this -> validateData ( $ user , $ formValues [ 'required-data.username' ] , $ formValues [ 'required-data.password' ] , $ formValues [ 'required-data.password-confirmed' ] ) ; } ) ; if ( $ result == Form :: DATA_VALID ) { $ result = $ this -> saveUser ( $ request , $ user ) ; } return $ result ; }
Validates the form data, updates the user and saves the
user into the database.

@param \Zepi\Turbo\Request\WebRequest $request
@param \Zepi\Turbo\Response\Response $response
@param \Zepi\Web\AccessControl\Entity\User $user
@return boolean|string
Validates the form data updates the user and saves the user into the database .