Closed berwynn closed 2 years ago
Well, this is a classic scenario, soon as I post a request, I find the solution.
Just in case anyone else runs into this issue here is what I got from: https://stackoverflow.com/questions/56148927/cakephp-authentication-login-action
It's Fernand Diaz's answer.
I was handed a copy of a DB of the original project, and upon looking turns out the type for the passwords was set to 40 characters. Which conflicted with the 60 that was generated by Cake.
Updated the column to varchar 255 and now it's working like a charm.
I hope my findings will helps other with the same issue.
Hello all,
Been to the support Slack and @LordSimal had a look at this issue, but I thought I might put it out there just in case anyone else has come across this.
First, the error message: FAILURE_IDENTITY_NOT_FOUND, I got this by adding debug($result) to the login method under UsersController.
The entire message looks like this:
This is how my getAuthenticationService() from Application.php method looks like:
What my login.php looks like:
I've implemented hashing on User.php:
Can confirm that the account exists on the db:
Beyond the above details, I am happy to provide any required information, but I hit a hard wall with this one, any help would be appreciated.
Thank you in advance!