search for: funkyencryptionmodul

Displaying 1 result from an estimated 1 matches for "funkyencryptionmodul".

Did you mean: funkyencryptionmodule
2011 Oct 14
2
before_save :encrypt_password
I am having a problem finding the best way to make a "before_save :encrypt_password" conditional. I have to at times update user model attributes but each time I do this the password is reencrypted because of the above. I need to differentiate between when the user is first logging in and the password does need to be encrypted, and when they are already logged in and the