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? Quote Link to comment 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.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.