Sunday, January 2, 2011

Auth password hash help

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: