Redirect to root after password reset
CI / Test (pull_request) Successful in 32s
Release Drafter / Update release notes draft (pull_request) Successful in 2s

This commit is contained in:
2026-08-10 11:22:03 -06:00
parent 29a9dee1cb
commit 89184cd851
3 changed files with 63 additions and 1 deletions
@@ -55,7 +55,12 @@ class Devise::PasswordsController < DeviseController
protected
def after_resetting_password_path_for(resource)
Devise.sign_in_after_reset_password ? after_sign_in_path_for(resource) : new_session_path(resource_name)
session.delete(:user_return_to)
if Devise.sign_in_after_reset_password
root_path
else
new_session_path(resource_name)
end
end
# The path used after sending reset password instructions