From 0b9b6a623ec00a00cb8aff93cecd6dc3584f589d Mon Sep 17 00:00:00 2001 From: Katsuhiko YOSHIDA Date: Thu, 23 Nov 2017 11:07:33 +0900 Subject: [PATCH] Change size of profile immage in User --- redash/authentication/google_oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redash/authentication/google_oauth.py b/redash/authentication/google_oauth.py index 005e5df24..6d1b7ace2 100644 --- a/redash/authentication/google_oauth.py +++ b/redash/authentication/google_oauth.py @@ -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)