fix password reset error

This commit is contained in:
Devin Howard 2016-09-15 07:18:15 +08:00
parent 61465ff148
commit 4723c62b20

View file

@ -1,7 +1,11 @@
class Users::PasswordsController < Devise::PasswordsController class Users::PasswordsController < Devise::PasswordsController
protected protected
def after_resetting_password_path_for(resource) def after_resetting_password_path_for(resource)
signed_in_root_path(resource) signed_in_root_path(resource)
end end
def after_sending_reset_password_instructions_path_for(resource_name)
new_user_session_path if is_navigational_format?
end
end end