I came across this, the way I  solved it :

- I use another field name than password in the form (ie: mypass), in
my controller is this field is not blank I generate (before save):
$this->data['User']['password'] = $this->Auth->password($this-
>data['User']['mypass'])

- in a second project I wanted to "confirm" the new password (if
changed), I just use a check box labeled as "reset password" and
another field 'confirmpass". I use the same approach as above but the
condition being the check box checked or not

Hope this helps

On Nov 12, 12:23 pm, Mike Digital Egg <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am using the Auth Component for 1.2 which is working great but I
> have just come across a problem which I can't work out.
>
> I have a user management system which is basically just a form
> containing the user details, these details will need to be editable.
> All good so far, the problem I am having is that if I want to leave
> the password unchanged (by leaving the password field blank)and just
> change the username for example the Auth component overwrites the
> existing password with a hash of "". Is there a way of asetting it so
> that a blank password means keep the original?
>
> Cheers
>
> Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to