Ubiquity 2.5.2
php rapid development framework
|
Trait AuthAccountCreationTrait. More...
Public Member Functions | |
_addFrmAjaxBehavior ($id) | |
_getPasswordInputName () | |
_getLoginInputName () | |
_getBodySelector () | |
checkEmail (string $key, string $hashMail) | |
Route for email validation checking when creating a new account. | |
addAccount () | |
Displays the account creation form. | |
createAccount () | |
Submit for a new account creation. | |
Protected Member Functions | |
getBaseUrl () | |
fMessage (FlashMessage $fMessage, $id=null) | |
useAjax () | |
authLoadView ($viewName, $vars=[]) | |
rememberCaption () | |
loginLabel () | |
passwordConfLabel () | |
passwordLabel () | |
_getFiles () | |
hasAccountCreation () | |
Returns true for account creation. | |
hasEmailValidation () | |
emailValidationDuration () | |
Returns the default validity duration of a mail validation link. | |
createAccountMessage (FlashMessage $fMessage) | |
To override for modifying the account creation message. | |
canCreateAccountMessage (FlashMessage $fMessage) | |
To override for modifying the account creation message information. | |
createAccountErrorMessage (FlashMessage $fMessage) | |
To override for modifying the error for account creation. | |
emailValidationSuccess (FlashMessage $fMessage) | |
To override Displayed when email is valid. | |
emailValidationError (FlashMessage $fMessage) | |
To override Displayed when email is invalid or if an error occurs. | |
_create (string $login, string $password) | |
To override For creating a new user account. | |
_newAccountCreationRule (string $accountName) | |
To override Returns true if the creation of $accountName is possible. | |
_sendEmailValidation (string $email, string $validationURL, string $expire) | |
Sends an email for email checking. | |
getEmailFromNewAccount ($account) | |
To override Returns the email from an account object. | |
getAuthTokensEmailValidation () | |
To override Returns the AuthTokens instance used for tokens generation when sending an email for the account creation. | |
generateEmailValidationUrl ($email) | |
prepareEmailValidation (string $email) | |
validateEmail (string $mail) | |
To override Checks an email. | |
Static Protected Attributes | |
static string | $TOKENS_VALIDATE_EMAIL ='email.validation' |
Trait AuthAccountCreationTrait.
Definition at line 17 of file AuthAccountCreationTrait.php.
|
abstract |
Reimplemented in AuthController.
|
protected |
To override For creating a new user account.
Definition at line 116 of file AuthAccountCreationTrait.php.
|
abstract |
Reimplemented in AuthControllerConfig.
|
abstractprotected |
|
abstract |
Reimplemented in AuthControllerConfig.
|
abstract |
Reimplemented in AuthControllerConfig.
|
protected |
To override Returns true if the creation of $accountName is possible.
string | $accountName |
Definition at line 126 of file AuthAccountCreationTrait.php.
|
protected |
Sends an email for email checking.
string | ||
string | $validationURL | |
string | $expire |
Definition at line 136 of file AuthAccountCreationTrait.php.
addAccount | ( | ) |
Displays the account creation form.
Form is submited to /createAccount action
Definition at line 219 of file AuthAccountCreationTrait.php.
|
abstractprotected |
|
protected |
To override for modifying the account creation message information.
FlashMessage | $fMessage |
Definition at line 83 of file AuthAccountCreationTrait.php.
checkEmail | ( | string | $key, |
string | $hashMail | ||
) |
Route for email validation checking when creating a new account.
string | $key | |
string | $hashMail |
Definition at line 191 of file AuthAccountCreationTrait.php.
createAccount | ( | ) |
Submit for a new account creation.
Definition at line 244 of file AuthAccountCreationTrait.php.
|
protected |
To override for modifying the error for account creation.
FlashMessage | $fMessage |
Definition at line 91 of file AuthAccountCreationTrait.php.
|
protected |
To override for modifying the account creation message.
FlashMessage | $fMessage |
Definition at line 75 of file AuthAccountCreationTrait.php.
|
protected |
Returns the default validity duration of a mail validation link.
Definition at line 67 of file AuthAccountCreationTrait.php.
|
protected |
To override Displayed when email is invalid or if an error occurs.
FlashMessage | $fMessage |
Definition at line 108 of file AuthAccountCreationTrait.php.
|
protected |
To override Displayed when email is valid.
FlashMessage | $fMessage |
Definition at line 99 of file AuthAccountCreationTrait.php.
|
abstractprotected |
|
protected |
Definition at line 159 of file AuthAccountCreationTrait.php.
|
protected |
To override Returns the AuthTokens instance used for tokens generation when sending an email for the account creation.
Definition at line 155 of file AuthAccountCreationTrait.php.
|
abstractprotected |
|
protected |
To override Returns the email from an account object.
mixed | $account |
Definition at line 146 of file AuthAccountCreationTrait.php.
|
protected |
Returns true for account creation.
Reimplemented in AuthControllerConfig.
Definition at line 51 of file AuthAccountCreationTrait.php.
|
protected |
Definition at line 59 of file AuthAccountCreationTrait.php.
|
abstractprotected |
Reimplemented in AuthControllerConfig.
|
abstractprotected |
Reimplemented in AuthControllerConfig.
|
abstractprotected |
Reimplemented in AuthControllerConfig.
|
protected |
Definition at line 168 of file AuthAccountCreationTrait.php.
|
abstractprotected |
Reimplemented in AuthControllerConfig.
|
abstractprotected |
Reimplemented in AuthControllerConfig.
|
protected |
To override Checks an email.
string |
Definition at line 181 of file AuthAccountCreationTrait.php.
|
staticprotected |
Definition at line 19 of file AuthAccountCreationTrait.php.