Answer the question
In order to leave comments, you need to log in
Why does auth->identify always return false?
Delivered cakephp 3, made authorization as in documentation, all the same does not authorize
1) I use APC as a cache. Returned to the file, did not help.
2) When saving a user, passwords are hashed
3) When sending a POST request with a password and login and calling $user = $this->Auth->identify(); - no request to the database. (I look in the debug)
4) The password field in the database is 255 characters long. Many people make the mistake of specifying a shorter length and then wonder why the passwords don't match.
5) Data that is passed to users/login ($this->request->data)
[
'User' => [
'username' => 'admin',
'password' => '123456'
In order not to copy for many years, I cut out the main one - pastebin.com/eQg4ANZu
I just can't figure out what's wrong.
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