A
A
Alastor2015-04-22 16:24:14
PHP
Alastor, 2015-04-22 16:24:14

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

1 answer(s)
A
Alastor, 2015-04-22
@Alastor

i am allen. this is how it went. I don’t know what nonsense, in version 2 it rolled as I indicated above
[
'username' => 'admin',
'password' => '123456'
]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question