Created
November 21, 2014 22:57
-
-
Save JasonY1/f9b900f52542d662d9be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reset_password!(new_password, new_password_confirmation) | |
self.password = new_password | |
self.password_confirmation = new_password_confirmation | |
if valid? | |
clear_reset_password_token | |
after_password_reset | |
end | |
save | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment