Revert "update_with_password doesn't change encrypted password when it is invalid"

This reverts commit 10235f9d72.
This commit is contained in:
José Valim
2013-01-11 19:12:53 +01:00
parent bd9bf326c0
commit 33fb89340a
2 changed files with 0 additions and 8 deletions

View File

@@ -64,7 +64,6 @@ module Devise
result = if valid_password?(current_password)
update_attributes(params, *options)
else
params.delete(:password)
self.assign_attributes(params, *options)
self.valid?
self.errors.add(:current_password, current_password.blank? ? :blank : :invalid)