M
M
Maxemp2018-02-16 14:56:03
Yii
Maxemp, 2018-02-16 14:56:03

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' => ['@'],
        ],
      ],
    ],

But when I try to log in, it still sends me to site/login.
When manually entering the url on the new controller, everything works as it should.
What could be causing this one? Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-02-16
@Maxemp

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 question

Ask a Question

731 491 924 answers to any question