Answer the question
In order to leave comments, you need to log in
Why doesn't authorization work on yii2?
I'm new to this framework and there are a few things I don't understand. To clearly show what is going on, I decided to put my code on the repository https://github.com/hollandit/crm.git
My problem is that even I redirected the table from the user model, but during authorization it says that the login and password are incorrect specified, although the database has such a login and the password is correct. I tried to cache the password in phpMyAdmin in both md5 and sha1, nothing helps and I can't figure out what the problem is. And what needs to be fixed
Answer the question
In order to leave comments, you need to log in
Yii2 does not use the md5 and sha1 algorithms by default.
Generate password using framework method
Yii::$app->security->generatePasswordHash('you password');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question