Class dektrium\user\Module
Inheritance | dektrium\user\Module » yii\base\Module |
---|
This is the main module class for the Yii2-user.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$admins | array | An array of administrator's usernames. | dektrium\user\Module |
$confirmWithin | int | The time before a confirmation token becomes invalid. | dektrium\user\Module |
$cost | int | Cost parameter used by the Blowfish hash algorithm. | dektrium\user\Module |
$emailChangeStrategy | int | Email changing strategy. | dektrium\user\Module |
$enableConfirmation | bool | Whether user has to confirm his account. | dektrium\user\Module |
$enableFlashMessages | bool | Whether to show flash messages. | dektrium\user\Module |
$enableGeneratingPassword | bool | Whether to remove password field from registration form. | dektrium\user\Module |
$enablePasswordRecovery | bool | Whether to enable password recovery. | dektrium\user\Module |
$enableRegistration | bool | Whether to enable registration. | dektrium\user\Module |
$enableUnconfirmedLogin | bool | Whether to allow logging in without confirmation. | dektrium\user\Module |
$mailer | array | Mailer configuration | dektrium\user\Module |
$modelMap | array | Model map | dektrium\user\Module |
$recoverWithin | int | The time before a recovery token becomes invalid. | dektrium\user\Module |
$rememberFor | int | The time you want the user will be remembered without asking for credentials. | dektrium\user\Module |
$urlPrefix | string | The prefix for user module URL. | dektrium\user\Module |
$urlRules | array | The rules to be used in URL management. | dektrium\user\Module |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
STRATEGY_DEFAULT | 1 | Email is changed after user clicks confirmation link sent to his new email address. | dektrium\user\Module |
STRATEGY_INSECURE | 0 | Email is changed right after user enter's new email address. | dektrium\user\Module |
STRATEGY_SECURE | 2 | Email is changed after user clicks both confirmation links sent to his old and new email addresses. | dektrium\user\Module |
VERSION | '0.9.5' | dektrium\user\Module |
Property Details
An array of administrator's usernames.
The time before a confirmation token becomes invalid.
Cost parameter used by the Blowfish hash algorithm.
Email changing strategy.
Whether user has to confirm his account.
Whether to show flash messages.
Whether to remove password field from registration form.
Whether to enable password recovery.
Whether to enable registration.
Whether to allow logging in without confirmation.
Mailer configuration
Model map
The time before a recovery token becomes invalid.
The time you want the user will be remembered without asking for credentials.
The prefix for user module URL.
The rules to be used in URL management.
public array $urlRules = ['<id:\d+>' => 'profile/show', '<action:(login|logout)>' => 'security/<action>', '<action:(register|resend)>' => 'registration/<action>', 'confirm/<id:\d+>/<code:[A-Za-z0-9_-]+>' => 'registration/confirm', 'forgot' => 'recovery/request', 'recover/<id:\d+>/<code:[A-Za-z0-9_-]+>' => 'recovery/reset', 'settings/<action:\w+>' => 'settings/<action>']