PHP Trait CakeDC\Users\Controller\Traits\RegisterTrait

Inheritance: use trait PasswordManagementTrait
Show file Open project: cakedc/users

Public Methods

Method Description
register ( ) : type Register a new user
validateEmail ( string $token = null ) : void Validate an email

Protected Methods

Method Description
_afterRegister ( Cake\Datasource\EntityInterface $userSaved ) : Response Prepare flash messages after registration, and dispatch afterRegister event
_validateRegisterPost ( ) : boolean Check the POST and validate it for registration, for now we check the reCaptcha

Method Details

_afterRegister() protected method

Prepare flash messages after registration, and dispatch afterRegister event
protected _afterRegister ( Cake\Datasource\EntityInterface $userSaved ) : Response
$userSaved Cake\Datasource\EntityInterface User entity saved
return Cake\Network\Response

_validateRegisterPost() protected method

Check the POST and validate it for registration, for now we check the reCaptcha
protected _validateRegisterPost ( ) : boolean
return boolean

register() public method

Register a new user
public register ( ) : type
return type

validateEmail() public method

Validate an email
public validateEmail ( string $token = null ) : void
$token string token
return void