about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorCSDUMMI <31551856+CSDUMMI@users.noreply.github.com>2023-03-13 00:06:27 +0100
committerGitHub <noreply@github.com>2023-03-13 00:06:27 +0100
commitd258ec8e3ba7eec75d4da645444d03975e8dd62c (patch)
tree08f8e848b8ce1bce5a9a5b2ac1693582f07d76a5 /app
parente762a14c0ab235c337b3cddbef1eaf72b26faf58 (diff)
Prefer the stored location as after_sign_in_path in Omniauth Callback Controller (#24073)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth/omniauth_callbacks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth/omniauth_callbacks_controller.rb b/app/controllers/auth/omniauth_callbacks_controller.rb
index 3d7962de5..9e0fb942a 100644
--- a/app/controllers/auth/omniauth_callbacks_controller.rb
+++ b/app/controllers/auth/omniauth_callbacks_controller.rb
@@ -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