Prefer the stored location as after_sign_in_path in Omniauth Callback Controller (#24073)

lolsob-rspec
CSDUMMI 2023-03-13 00:06:27 +01:00 committed by GitHub
parent 12cbdf36a9
commit 5f9f43d051
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Auth::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def after_sign_in_path_for(resource)
if resource.email_present?
root_path
stored_location_for(resource) || root_path
else
auth_setup_path(missing_email: '1')
end