Skip to content
Snippets Groups Projects
Unverified Commit d258ec8e authored by CSDUMMI's avatar CSDUMMI Committed by GitHub
Browse files

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

parent e762a14c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment