Re: users/edit function cake changes the password even when no password is provided

2009-07-09 Thread thelonelyrider
Worked for me! Thanks! --~--~-~--~~~---~--~~ 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 cake-php+unsubscr.

Re: users/edit function cake changes the password even when no password is provided

2009-05-28 Thread rich...@home
If you are using the Auth component, Auth will hash the blank password. The workaround I've found for this is to use a dummy password field (e.g. new_password) instead of the real password field, then in your controller::save() do if (!empty($this->data) { if (!empty($this->data['Model']['n

users/edit function cake changes the password even when no password is provided

2009-05-28 Thread Bryan Paddock
Hiya all Weird problem here - in my users/edit function i have a form for updating your user information If you submit the form with a blank password (so the user is not changing their password) then cake decides to change the password anyways! I have tried fixing it in my own code but nothing se