*/ class Module extends \yii\base\Module { /** * @var bool whether to allow registration process or not. */ public $allowRegistration = true; /** * @var bool whether to force email confirmation to. */ public $forceEmailConfirmation = true; /** * @var bool whether to allow login accounts with unconfirmed emails. */ public $allowUnconfirmedEmailLogin = false; /** * @var string the class name of the strategy class to handle user's email change. */ public $emailChangeStrategy = DefaultEmailChangeStrategy::class; /** * @var int the time user will be auto logged in. */ public $rememberLoginLifespan = 1209600; /** * @var int the time before the confirmation token becomes invalid. Defaults to 24 hours. */ public $tokenConfirmationLifespan = 86400; /** * @var int the time before a recovery token is invalid. Defaults to 6 hours. */ public $tokenRecoveryLifespan = 21600; /** * @var array a list of admin usernames */ public $administrators = []; /** * @var string the administrator permission name */ public $administratorPermissionName; /** * @var array the class map used by the module. * * @see Bootstrap */ public $classmap = []; /** * @var string the route prefix */ public $prefix = 'user'; /** * @var array the url rules (routes) */ public $routes = [ '' => 'profile/show', '' => 'security/', '' => 'registration/', 'confirm//' => 'registration/confirm', 'forgot' => 'recovery/request', 'recover//' => 'recovery/reset', 'settings/' => 'settings/' ]; }