Merge pull request #2259 from shinji19/master

Fix google oauth login for multi organization
This commit is contained in:
Arik Fraimovich
2018-01-25 19:54:43 +02:00
committed by GitHub

View File

@@ -114,7 +114,7 @@ def login(org_slug=None):
elif settings.LDAP_LOGIN_ENABLED:
return redirect(url_for("ldap_auth.login", next=next_path))
else:
return redirect(url_for("google_oauth.authorize", next=next_path))
return redirect(get_google_auth_url(next_path))
if request.method == 'POST':
try: