feat: Add more info to auth request
All checks were successful
Build Docker / Build Docker (push) Successful in 27s
All checks were successful
Build Docker / Build Docker (push) Successful in 27s
This commit is contained in:
parent
82eb3b925b
commit
2b7c586862
@ -151,6 +151,7 @@ def api_me():
|
|||||||
print(user.id, user.username, flush=True)
|
print(user.id, user.username, flush=True)
|
||||||
userInfo = {
|
userInfo = {
|
||||||
"id": user.id,
|
"id": 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",
|
||||||
"displayName": user.username + "/",
|
"displayName": user.username + "/",
|
||||||
@ -162,7 +163,8 @@ def api_me():
|
|||||||
"preferred_username": user.username,
|
"preferred_username": user.username,
|
||||||
"profile": f"https://login.hns.au/u/{user.username}",
|
"profile": f"https://login.hns.au/u/{user.username}",
|
||||||
"picture": f"https://login.hns.au/u/{user.username}/avatar",
|
"picture": f"https://login.hns.au/u/{user.username}/avatar",
|
||||||
"website": f"https://{user.username}"
|
"website": f"https://{user.username}",
|
||||||
|
"email_verified": True
|
||||||
}
|
}
|
||||||
print(userInfo, flush=True)
|
print(userInfo, flush=True)
|
||||||
# a = [
|
# a = [
|
||||||
|
Loading…
Reference in New Issue
Block a user