diff --git a/app/oauth/templates/oauth/authorize_nonlogin_user.html b/app/oauth/templates/oauth/authorize_nonlogin_user.html
index 61f98747..777971eb 100644
--- a/app/oauth/templates/oauth/authorize_nonlogin_user.html
+++ b/app/oauth/templates/oauth/authorize_nonlogin_user.html
@@ -6,7 +6,13 @@
{% for scope in client.get_scopes() %}
- - {{ scope.value }}
+ -
+ {% if scope == Scope.AVATAR_URL %}
+ avatar
+ {% else %}
+ {{ scope.value }}
+ {% endif %}
+
{% endfor %}
diff --git a/app/oauth/views/authorize.py b/app/oauth/views/authorize.py
index 998de1aa..1fc12172 100644
--- a/app/oauth/views/authorize.py
+++ b/app/oauth/views/authorize.py
@@ -82,7 +82,7 @@ def authorize():
else:
# after user logs in, redirect user back to this page
return render_template(
- "oauth/authorize_nonlogin_user.html", client=client, next=request.url
+ "oauth/authorize_nonlogin_user.html", client=client, next=request.url, Scope=Scope,
)
else: # user allows or denies
gen_new_email = request.form.get("gen-email") == "on"