mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 18:59:03 +01:00
Prefer the stored location as after_sign_in_path in Omniauth Callback Controller (#24073)
This commit is contained in:
parent
e762a14c0a
commit
d258ec8e3b
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class Auth::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
if resource.email_present?
|
if resource.email_present?
|
||||||
root_path
|
stored_location_for(resource) || root_path
|
||||||
else
|
else
|
||||||
auth_setup_path(missing_email: '1')
|
auth_setup_path(missing_email: '1')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue