PHP Trait CakeDC\Users\Controller\Traits\RegisterTrait

Inheritance: use trait PasswordManagementTrait
Afficher le fichier Open project: cakedc/users

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

_validateRegisterPost() protected méthode

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

register() public méthode

Register a new user
public register ( ) : type
Résultat type

validateEmail() public méthode

Validate an email
public validateEmail ( string $token = null ) : void
$token string token
Résultat void