devilincarnated Posted April 19, 2010 Share Posted April 19, 2010 hi i am working with the cakehp framework for a site i have to build....i am suffering a login problem now... in the register page i got two fields for password and password confirm....and when i try to login with Auth compnent, it gives error cos cakePHP only sees the first password as a valid password field and hashes it while the second one remains unhashed....it causes problems resulting in invalid username/password.....anyone got a way out of it? Link to comment https://forums.phpfreaks.com/topic/198977-cakephp-login-issue/ Share on other sites More sharing options...
devilincarnated Posted April 19, 2010 Author Share Posted April 19, 2010 in the password match function insert this line: $password_confirm = Security::hash(Configure::read('Security.salt') . $data[$keys[0]]); does the trick...tall thanx 2 cakePHP manual.... Link to comment https://forums.phpfreaks.com/topic/198977-cakephp-login-issue/#findComment-1044435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.