diff --git a/src/User/Bootstrap.php b/src/User/Bootstrap.php index f166761..b7488a7 100644 --- a/src/User/Bootstrap.php +++ b/src/User/Bootstrap.php @@ -166,7 +166,7 @@ class Bootstrap implements BootstrapInterface $di->set( 'yii\web\User', [ - 'enableAutoLogin' => $app->getModule('user')->enableAutologin, + 'enableAutoLogin' => $app->getModule('user')->enableAutoLogin, 'loginUrl' => ['/user/security/login'], 'identityClass' => $di->get(ClassMapHelper::class)->get(User::class), ] diff --git a/src/User/Module.php b/src/User/Module.php index c7bb564..341b208 100644 --- a/src/User/Module.php +++ b/src/User/Module.php @@ -29,9 +29,9 @@ class Module extends BaseModule */ public $twoFactorAuthenticationCycles = 1; /** - * @var bool whether to allow autologin or not + * @var bool whether to allow auto login or not */ - public $enableAutologin = true; + public $enableAutoLogin = true; /** * @var bool whether to allow registration process or not */