Answer the question
In order to leave comments, you need to log in
Because of what can redirect to a non-existent action?
I moved backend authentication to a separate controller, changed as access from site/login to auth/login in the config:
'as access' => [
'class' => 'yii\filters\AccessControl',
'except' => ['auth/login', 'site/error'],
'rules' => [
[
'allow' => true,
'roles' => ['@'],
],
],
],
Answer the question
In order to leave comments, you need to log in
Most likely you have not set a value for the loginUrl parameter of the user component
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question