@ -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),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -31,7 +31,7 @@ class Module extends BaseModule
|
|||||||
/**
|
/**
|
||||||
* @var bool whether to allow auto login 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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user