From ef27dc3f2a500f5cb0c3deb466695eb2fbecc916 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 20 Jun 2024 20:39:02 +1000 Subject: [PATCH] feat: Add a permanent email for better compatibility with old accounts --- website/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/routes.py b/website/routes.py index 0804e3b..78ba890 100644 --- a/website/routes.py +++ b/website/routes.py @@ -32,7 +32,8 @@ restricted_keys = [ "email_verified", "roles", "role", - "admin" + "admin", + "hemail" ] if not os.path.exists("website/avatars"): @@ -80,6 +81,7 @@ def get_user_info(user:User) -> dict: "uid": user.id, "username": user.username, "email": f"{user.username}@login.hns.au", + "hemail": f"{user.username}@login.hns.au", "displayName": user.username + "/", "sub": user.id, "name": user.username,