diff --git a/lib/sorcery/model/submodules/reset_password.rb b/lib/sorcery/model/submodules/reset_password.rb index e222ee8e..306f2803 100644 --- a/lib/sorcery/model/submodules/reset_password.rb +++ b/lib/sorcery/model/submodules/reset_password.rb @@ -105,10 +105,10 @@ def deliver_reset_password_instructions! end # Clears token and tries to update the new password for the user. - def change_password!(new_password) + def change_password!(new_password, options={}) clear_reset_password_token self.send(:"#{sorcery_config.password_attribute_name}=", new_password) - sorcery_adapter.save + sorcery_adapter.save(options) end protected