diff --git a/litecord/blueprints/auth.py b/litecord/blueprints/auth.py index c90e696..7049fa4 100644 --- a/litecord/blueprints/auth.py +++ b/litecord/blueprints/auth.py @@ -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 diff --git a/litecord/blueprints/users.py b/litecord/blueprints/users.py index f8727b5..0691e93 100644 --- a/litecord/blueprints/users.py +++ b/litecord/blueprints/users.py @@ -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,