Property |
Type |
Description |
|
$alias |
|
Alias for module |
|
$emailChangeConfirmation |
|
If true, users will have to confirm their email address after changing it on the account page |
|
$emailConfirmation |
|
If true, users will have to confirm their email address after registering (= email activation) |
|
$emailViewPath |
|
Email view path |
|
$loginDuration |
|
Login duration |
|
$loginEmail |
|
If true, users can log in using their email |
|
$loginExpireTime |
|
Login via email token expiration (passed to strtotime()) |
|
$loginRedirect |
|
Url to redirect to after logging in. If null, will redirect to home page. Note that
AccessControl takes precedence over this (see [[yii\web\User::loginRequired()]]) |
|
$loginUsername |
|
If true, users can log in using their username |
|
$logoutRedirect |
|
Url to redirect to after logging out. If null, will redirect to home page |
|
$modelClasses |
|
Model classes, e.g., ["User" => "amnah\yii2\user\models\User"]
Usage:
$user = Yii::$app->getModule("user")->model("User", $config);
(equivalent to)
$user = new \amnah\yii2\user\models\User($config);
The model classes here will be merged with/override the [[getDefaultModelClasses()|default ones]] |
|
$requireEmail |
|
If true, users are required to enter an email |
|
$requireUsername |
|
If true, users are required to enter a username |
|
$resetExpireTime |
|
Reset password token expiration (passed to strtotime()) |
|
$useEmail |
|
If true, users can enter an email. This is automatically set to true if $requireEmail = true |
|
$useUsername |
|
If true, users can enter a username. This is automatically set to true if $requireUsername = true |
|