On Sun, Jun 29, 2008 at 12:03 PM, Maro <[EMAIL PROTECTED]> wrote:
>        if(strcmp($phrase,$createdHash) == 0)
>        {
>
>                        
> if(!empty($this->Auth->data['User']['password_confirm']))
>                        {
>                                        if 
> ($this->Auth->data['User']['password'] == $this->Auth-
>>data['User']['password_confirm'])
>                            {
>                                        
> $this->User->confirmPassword($this->data);
>                                $this->User->saveField('password',$this->Auth-
>>data['User']['password'],true);
>

Hi there, I noticed a few things.

Unless they changed things dramatically in the latest RC releases for
1.2, you should be using $this->data['User']['password'] not
$this->Auth->data['User']['password'].

Secondly, Auth automatically hashes the contents of your User password
input field if you pass data in the User 'username' field.  In order
to make your "password confirm" field work, you have to also hash the
password_confirm field.  Try this

if ($this->data['User']['password'] ==
$this->Auth->password($this->data['User']['password_confirm'])

as your check.

I recently added that info to book.cakephp.org in the Auth component
section.  Hope that helps.


-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to