mworkman Posted January 1, 2011 Share Posted January 1, 2011 I am trying to use the Auth component. It say that is uses sha1 by default. So I saved my password using sha1 function. When I tryed to login with Auth it came up with a different value when comparing the values. How can I fix this? Link to comment https://forums.phpfreaks.com/topic/223107-cakephp-auth-password-help/ Share on other sites More sharing options...
Web Developer Posted January 6, 2011 Share Posted January 6, 2011 No need to use auth component because its inbuilt in cakePHP and if you using inbuilt then it saves password with its default SALT security... so you don't have to encrypt it at time of insert.. $this->Auth->password('Your pasword'); - this way you can store default and same way you can get also.. it always return its encrypt value Link to comment https://forums.phpfreaks.com/topic/223107-cakephp-auth-password-help/#findComment-1155576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.