Skip to content

Commit

Permalink
Merge pull request #17 from mozilla/fix-3rd-party-login
Browse files Browse the repository at this point in the history
Prefer the stored location as after_sign_in_path in Omniauth Callback Controller
  • Loading branch information
aaga authored Apr 21, 2023
2 parents f8fa721 + 019a6de commit 2d7937f
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 2d7937f

Please sign in to comment.