Login fails .$this->Auth->identify() returning false


#1

Hi,
I am new in cakephp. i have an issue with login section.when login ,$this->Auth->identify() returning false so no able to login for right credential as well.i tried one solution that increasing the password field length but that also not working.
could you please help me?

thanks,
Trishna


#2

post your code please or we cant get a clue whats going wrong, UserController.php, AppController.php


#3

The most common error is around hashing. Are you sure that your password is hashed and you are comparing against that?

Anyway the easiest way to handle to whole story is using this plugin: https://github.com/CakeDC/users/

Otherwise as @Diego mentioned we would need to see your code.