Send account deletion codes via POST

This commit is contained in:
-LAN-
2025-09-27 03:14:16 +08:00
parent c9eabe1612
commit c14f4495c1
3 changed files with 65 additions and 2 deletions

View File

@ -287,7 +287,7 @@ class AccountDeleteVerifyApi(Resource):
@setup_required
@login_required
@account_initialization_required
def get(self):
def post(self):
if not isinstance(current_user, Account):
raise ValueError("Invalid user account")
account = current_user