appstore: try to fix login for people with no avatar x_x

This commit is contained in:
Alexandre Aubin
2023-09-26 13:41:40 +02:00
parent 38ac3674fa
commit 58ad0ec41d
2 changed files with 8 additions and 4 deletions

View File

@ -416,7 +416,7 @@ def sso_login_callback():
session["user"] = {
"id": user_data["external_id"][0],
"username": user_data["username"][0],
"avatar_url": user_data["avatar_url"][0],
"avatar_url": user_data["avatar_url"][0] if "avatar_url" in user_data else "",
}
if uri_to_redirect_to_after_login: