feat: Add a permanent email for better compatibility with old accounts
All checks were successful
Build Docker / Build Docker (push) Successful in 37s
All checks were successful
Build Docker / Build Docker (push) Successful in 37s
This commit is contained in:
parent
298c2ae36c
commit
ef27dc3f2a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user