This commit is contained in:
Leander Furumo committed 2024-04-12 02:57:28 +02:00
1 parent 16a319876b
commit b8f70479a9
2 files changed
+45

No files matched your search

+9
View File
@@ -113,6 +113,15 @@ async def callback(request: Request, code: str, state: str):
discord_id,
)
# Notify bot that user is verified
await app.state.pool.execute(
"""
NOTIFY galtinn_auth_complete, '$1 $2'
""",
discord_id,
user["sub"], # TODO: use UUID?
)
return RedirectResponse(f"/success/{user['preferred_username']}", status_code=303)