I have two identical servers with identical DB schema, PHP and CakePHP versions:
On dev, $this->Auth->identify() returns true if the username and password are correct.
For some reason, on prod, $this->Auth->identify() always returns false. Tried everything I can find online such as:
\- Check password field length. It is set to 255
\- Security salt is same on both temporarily
\- Source code on both dev and prod are the same (using git to track). It is working on he dev server, but not on the prod server.
\- Checked that the Hash is stored correctly in the DB using (new DefaultPasswordHasher)->check($pwd, $hash). This returns true when I test it with the password string and the hash stored in prod db.
What could be the issue? Thank you very much for any help or pointers on how to debug it.