mirror of https://gitlab.com/litecord/litecord.git
blueprints.auth: dispatch USER_UPDATE when setting verify status
This commit is contained in:
parent
da4ce66a0c
commit
9aec27203b
|
|
@ -108,4 +108,8 @@ async def verify_user():
|
||||||
WHERE id = $1
|
WHERE id = $1
|
||||||
""", user_id)
|
""", user_id)
|
||||||
|
|
||||||
|
new_user = await app.storage.get_user(user_id, True)
|
||||||
|
await app.dispatcher.dispatch_user(
|
||||||
|
user_id, 'USER_UPDATE', new_user)
|
||||||
|
|
||||||
return '', 204
|
return '', 204
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue