On Fri, Jun 6, 2008 at 4:42 PM, benjam <[EMAIL PROTECTED]> wrote:
>
> If you'll notice in my controller method, that's exactly what I do,
> but because it's already hashed, it's not empty, it's a hash of an
> empty string.
>
> I need to find a way to delete it before it gets hashed.  And it gets
> hashed before the data gets to the method.  So I need to find a way to
> delete it even before that.
>

Ugh.  Didn't notice that you were doing that before I posted.  My apologies.

Try doing it in the beforeSave() method of your model.  You'd have to
do a check to see what action you were doing so that you can say "if
you're accessing this via my edit method, unset the password".

I'm not 100% on where in the whole save process that Auth hashes the
password, so putting it in beforeSave() hopefully does the trick.

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