Change size of profile immage in User

This commit is contained in:
Katsuhiko YOSHIDA
2017-11-23 11:07:33 +09:00
parent ea5788f173
commit 0b9b6a623e

View File

@@ -116,7 +116,8 @@ def authorized():
flash("Your Google Apps account ({}) isn't allowed.".format(profile['email']))
return redirect(url_for('redash.login', org_slug=org.slug))
create_and_login_user(org, profile['name'], profile['email'], profile['picture'])
picture_url = "%s?sz=40" % profile['picture']
create_and_login_user(org, profile['name'], profile['email'], picture_url)
next_path = request.args.get('state') or url_for("redash.index", org_slug=org.slug)