H
H
hollanditkzn2017-03-10 18:34:20
Yii
hollanditkzn, 2017-03-10 18:34:20

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

2 answer(s)
M
Mikhail Serenkov, 2017-03-10
@miserenkov

Yii2 does not use the md5 and sha1 algorithms by default.
Generate password using framework method

Yii::$app->security->generatePasswordHash('you password');

A
Alexey, 2017-03-10
@masterfreelance

yii2 authentication

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question