use username instead of name for success page

This commit is contained in:
Leander Furumo committed 2024-04-11 01:07:25 +02:00
1 parent 0f4eb76845
commit 206c1fac91
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +132,7 @@ async def callback(request: Request, code: str, state: str):
(discord_id,),
)
return RedirectResponse(f"/success/{user['name']}", status_code=303)
return RedirectResponse(f"/success/{user['preferred_username']}", status_code=303)
@app.get("/success/{name}")