mirror of https://gitlab.com/litecord/litecord.git
parent
00346555d1
commit
214bef0371
|
|
@ -145,3 +145,9 @@ async def verify_user():
|
|||
user_id, 'USER_UPDATE', new_user)
|
||||
|
||||
return '', 204
|
||||
|
||||
|
||||
@bp.route('/logout', methods=['POST'])
|
||||
async def _logout():
|
||||
"""Called by the client to logout."""
|
||||
return '', 204
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ async def _del_from_table(table: str, user_id: int):
|
|||
user_id, table, res)
|
||||
|
||||
|
||||
@bp.route('/users/@me/delete')
|
||||
@bp.route('/@me/delete', methods=['POST'])
|
||||
async def delete_account():
|
||||
"""Delete own account.
|
||||
|
||||
|
|
@ -518,7 +518,7 @@ async def delete_account():
|
|||
username = $1,
|
||||
email = NULL,
|
||||
mfa_enabled = false,
|
||||
verified = false
|
||||
verified = false,
|
||||
avatar = NULL,
|
||||
flags = 0,
|
||||
premium_since = NULL,
|
||||
|
|
|
|||
Loading…
Reference in New Issue