Answer the question
In order to leave comments, you need to log in
YII2 override user identity, how to do?
Added module https://github.com/simialbi/yii2-kanban
to an existing site (YII2) .
This module wants in the config like this:
'components' => [
'user' => [
'identityClass' => 'app\models\User'
]
]
'user' => [
'identityClass' => 'app\modules\user\models\User',
'enableAutoLogin' => true,
'loginUrl' =>['/user/entrance/login'],
],
class User extends ActiveRecord implements IdentityInterface
class User extends ActiveRecord implements UserInterface
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question