From 27caee5400d5f4f323516dd683aba473d9ce595a Mon Sep 17 00:00:00 2001 From: Alex Agranov Date: Tue, 8 Sep 2015 19:04:26 -0400 Subject: [PATCH] allow options hash as an argument to change_password! --- lib/sorcery/model/submodules/reset_password.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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