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. On Jun 6, 2:38 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 2008 at 4:33 PM, benjam <[EMAIL PROTECTED]> wrote: > > I was wondering if there was a way to prevent it from hashing the > > password if there is no password entered? > > Well, before you save the data when you're editing, you could unset > the password field. > > i.e. unset($this->data['User']['password'] > > Totally untested. 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 [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 -~----------~----~----~----~------~----~------~--~---
