Duh, I forgot about the salt value and added the user in the users table without it.
Thanks, people! On 19 abr, 04:50, WebbedIT <[email protected]> wrote: > If wanting to compare your hashed password with a salt inflected > hashed string use > > if ($password == $this->Auth->password($password_confirm)) > > or > > if ($password == Security::hash(Configure::read('Security.salt') . > $password_confirm) > > HTH > > Paul > > On Apr 18, 5:24 pm, Zaky Katalan-Ezra <[email protected]> wrote: > > > > > I think the Auth uses a salt. > > > On Sun, Apr 18, 2010 at 6:43 PM,StefanoMartins <[email protected]>wrote: > > > > Hello folks, > > > > As I was studying CakePHP and the Auth Component, I've found out that > > > it's not using sha1 hashes - or at least it doesn't seems to - by > > > default. I had to manually set it to use md5 hashes, following the > > > instructions given by the Cookbook. For the string "stefano", Cake's > > > generating the "35b914b05db99937e255f0eaebd3ac89f804a1cc", while the > > > sha1() function generates the > > > "80980fcaf2ab3f243874695f57b2ed065d8e67e4" hash for the "stefano" > > > string. > > > > Am I doing something wrong? > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others > > > with their CakePHP related questions. > > > > You received this message because you are subscribed to the Google Groups > > > "CakePHP" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<cake-php%[email protected]>For > > > more options, visit this group at > > >http://groups.google.com/group/cake-php?hl=en > > > -- > > Regards, > > Zaky Katalan-Ezra > > QA Administratorwww.IGeneriX.com > > Sites.IGeneriX.com > > 054-7762312 > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
