small fix for password update method

This commit is contained in:
Harry Bomrah 2018-01-19 21:30:59 +08:00
parent 02344fd275
commit 196801878f
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class PseudoUser
end end
def update_password(password, password_confirmation) def update_password(password, password_confirmation)
self.update_attributes(password: password, password_confirmation: password_confirmation, reset_token: nil, registered: true) self.update_attributes(password: password, password_confirmation: password_confirmation, reset_token: nil)
self.save self.save
end end