Hi,

that is beacuse when you create the user, the plaintext password gets encrypted. When you now edit the user, the encrypted password gets loaded and when you save your user, the encrypted password gets encrypted again. (so the already encrypted password is handled as if it's a plaintext password). So, to keep the encrypted password, don't save it again. (unset the password field or don't load it or exclude it from your fields array or ...)

Greetings
Max

Am 12.08.2010 14:32, schrieb james:
Hi,

I'm using the auth component and ive noticed that if i edit a users
details from within the app it automatically changes the encrypted
password. Any ideas as to why it would do this?

thanks,

James.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to