Improve Google Login with Multiple Accounts

There was two problems:

  • the action on the buttons did nothing - @zogstrip fixed this in FIX: social login buttons were not working · discourse/discourse@0210a7f · GitHub

  • once the buttons were fixed, an attempted Google login immediately failed (before even logging into Google):

    “Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?”

    even when tried with an Incognito window. The error message from /logs was:

    (google_oauth2) Authentication failure! immediate_failed: OmniAuth::Strategies::OAuth2::CallbackError, immediate_failed

I tried setting google_oauth2_prompt to all three options to see if that helped, but nothing changed.

9 лайков