I am working with Yii2 and just can't separate users. My app has two modules.
This is my config from web.php:
'frontendUser' => [
'class' => 'yii\web\User',
'identityClass' => 'app\models\User',
'enableAutoLogin' => false,
'loginUrl' => ['frontend/default/index'],
],
'user' => [
'identityClass' => 'app\models\Owner',
'enableAutoLogin' => false,
'loginUrl' => ['arena/default/login'],
],
The problem is when I log in with one of the above, both the Yii::$app->user->isGuest and Yii::$app->frontendUser->isGuest returns true, and became logged in.
I found solutions only for the advanced template...
Thanks,