feat: Add a permanent email for better compatibility with old accounts
All checks were successful
Build Docker / Build Docker (push) Successful in 37s

This commit is contained in:
Nathan Woodburn 2024-06-20 20:39:02 +10:00
parent 298c2ae36c
commit ef27dc3f2a
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -32,7 +32,8 @@ restricted_keys = [
"email_verified", "email_verified",
"roles", "roles",
"role", "role",
"admin" "admin",
"hemail"
] ]
if not os.path.exists("website/avatars"): if not os.path.exists("website/avatars"):
@ -80,6 +81,7 @@ def get_user_info(user:User) -> dict:
"uid": user.id, "uid": user.id,
"username": user.username, "username": user.username,
"email": f"{user.username}@login.hns.au", "email": f"{user.username}@login.hns.au",
"hemail": f"{user.username}@login.hns.au",
"displayName": user.username + "/", "displayName": user.username + "/",
"sub": user.id, "sub": user.id,
"name": user.username, "name": user.username,