Why not just remove the password field from the form and create a
dedicated action/view for changing a password? Works for me.

On Fri, Jun 6, 2008 at 5:15 PM, benjam <[EMAIL PROTECTED]> wrote:
>
> I don't think beforeSave would work, because it gets hashed even
> before the method that calls Save( ).
>
> I think I may have found a cheater (read: non-cake) way of doing it...
>
> I run the following test:
>
> if ($this->Auth->password('') == $this->data['User']['password']) {
>        unset($this->data['User']['password']);
> }
>
> Basically, if the hash matches the hash of an empty string, the
> password was empty... clear it. done.
>
> thanks for all the input though guys, I appreciate it.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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