Displaying 1 result from an estimated 1 matches for "validate_password".
2006 Mar 29
5
How to skip password validation when updating other fields?
Besides the hashed password, which is saved to db, I have two 
password-attributes in my User model:
attr_accessor :password, :password_confirmation
I have validations on these attributes, and I need them to work both on 
create and update, since I have pages for changing and resetting the 
password.
Now when I want to update just the user''s login name, I guess I have the 
next