From 4723c62b2025ffdb833bb918760bd05af9c74245 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 15 Sep 2016 07:18:15 +0800 Subject: [PATCH] fix password reset error --- app/controllers/users/passwords_controller.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/controllers/users/passwords_controller.rb b/app/controllers/users/passwords_controller.rb index b6fa2acb..ee7b8667 100644 --- a/app/controllers/users/passwords_controller.rb +++ b/app/controllers/users/passwords_controller.rb @@ -1,7 +1,11 @@ class Users::PasswordsController < Devise::PasswordsController protected - def after_resetting_password_path_for(resource) - signed_in_root_path(resource) - end + def after_resetting_password_path_for(resource) + signed_in_root_path(resource) + end + + def after_sending_reset_password_instructions_path_for(resource_name) + new_user_session_path if is_navigational_format? + end end