Skip to content

Commit

Permalink
fix social login
Browse files Browse the repository at this point in the history
new rails needs option on redirect `, allow_other_host: true`
  • Loading branch information
neongrau committed Jan 18, 2024
1 parent d386294 commit 4e23feb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def do_oauth
# if an invite token is supplied this will be personalized with the user_id
user.claim_invite_token!(user.invite_token)
user.auto_accept_invites!
redirect_to Addressable::URI.parse(user.redirect_url_authenticated(url_values)).to_s
redirect_to Addressable::URI.parse(user.redirect_url_authenticated(url_values)).to_s, allow_other_host: true
end

def google_oauth2
Expand Down

0 comments on commit 4e23feb

Please sign in to comment.