Answer the question
In order to leave comments, you need to log in
Yii2: Why doesn't authorization work on production, although everything is ok on the local version with the same database?
I posted the site on the battlefield, with the same environment (docker) as on the local assembly, but I can’t log in for the life of me.
Looked at the logs - empty.
Investigating:
I tried to set a new password, it did not help.
I connected a remote combat database on the local - authorization works...
I tried to write data to $_SESSION, everything seems to be ok and written and saved... Let's
investigate further:
$result = Yii::$app->user->login(new Identity($user), $form->rememberMe ? 3600 * 24 * 30 : 0);
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