Browse Source

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

closed-social-glitch-2
CSDUMMI 1 year ago
committed by GitHub
parent
commit
d258ec8e3b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/auth/omniauth_callbacks_controller.rb

+ 1
- 1
app/controllers/auth/omniauth_callbacks_controller.rb 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

Loading…
Cancel
Save