Merge pull request #752 from getredash/proxy_fix

Fix: creating new user w/ Google Auth was broken.
This commit is contained in:
Arik Fraimovich 2016-01-11 12:46:53 +02:00
commit ccec964c24

View File

@ -102,7 +102,7 @@ def authorized():
flash("Your Google Apps domain name isn't allowed.")
return redirect(url_for('login', org_slug=org.slug))
create_and_login_user(org.id, profile['name'], profile['email'])
create_and_login_user(org, profile['name'], profile['email'])
next = request.args.get('state') or url_for("index", org_slug=org.slug)