Skip to content

Commit

Permalink
Prefer the stored location as after_sign_in_path in Omniauth Callback…
Browse files Browse the repository at this point in the history
… Controller (mastodon#24073)
  • Loading branch information
CSDUMMI authored and aaga committed Apr 20, 2023
1 parent f8fa721 commit 019a6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/auth/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.provides_callback_for(provider)

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
Expand Down

0 comments on commit 019a6de

Please sign in to comment.