$this->data['User']['password'] gets hashed automatically from Auth component, you don't need to hash it cause it will be already hashed, if you don't want to have such a behavior try renaming your password form field to be something other than "password", say "passPhrase" or something else
On Sun, Jan 2, 2011 at 2:19 PM, mworkman <mworkma...@gmail.com> wrote: > I am trying to get the Auth component to work. I am saving a user > password using both password() and hashPassword: > $password = $this->data['User']['password']; > $password = $this->Auth->password($password); > $this->data['User']['password'] = $this->Auth->password($password); > //$this->data = $this->Auth->hashPasswords($this->data); > $this->User->save($this->data); > > This gives 1 value for the password, but when I try to login it > searches for a different value for the password. I don't know what is > wrong. > > 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 cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For > more options, visit this group at > http://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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en