Merge pull request #153 from pappfer/patch-6

Patch 6
This commit is contained in:
Antonio Ramirez
2018-02-09 16:56:28 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ class Bootstrap implements BootstrapInterface
$di->set( $di->set(
'yii\web\User', 'yii\web\User',
[ [
'enableAutoLogin' => $app->getModule('user')->enableAutologin, 'enableAutoLogin' => $app->getModule('user')->enableAutoLogin,
'loginUrl' => ['/user/security/login'], 'loginUrl' => ['/user/security/login'],
'identityClass' => $di->get(ClassMapHelper::class)->get(User::class), 'identityClass' => $di->get(ClassMapHelper::class)->get(User::class),
] ]

View File

@ -29,9 +29,9 @@ class Module extends BaseModule
*/ */
public $twoFactorAuthenticationCycles = 1; 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 * @var bool whether to allow registration process or not
*/ */