All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 23s
- Added `marked_for_deletion` and `marked_for_deletion_at` fields to User model (Python and TypeScript) with serialization updates - Created POST /api/user/mark-for-deletion endpoint with JWT auth, error handling, and SSE event trigger - Blocked login and password reset for marked users; added new error codes ACCOUNT_MARKED_FOR_DELETION and ALREADY_MARKED - Updated UserProfile.vue with "Delete My Account" button, confirmation modal (email input), loading state, success/error modals, and sign-out/redirect logic - Synced error codes and model fields between backend and frontend - Added and updated backend and frontend tests to cover all flows and edge cases - All Acceptance Criteria from the spec are complete and verified
14 lines
539 B
Python
14 lines
539 B
Python
MISSING_FIELDS = "MISSING_FIELDS"
|
|
EMAIL_EXISTS = "EMAIL_EXISTS"
|
|
MISSING_TOKEN = "MISSING_TOKEN"
|
|
INVALID_TOKEN = "INVALID_TOKEN"
|
|
TOKEN_TIMESTAMP_MISSING = "TOKEN_TIMESTAMP_MISSING"
|
|
TOKEN_EXPIRED = "TOKEN_EXPIRED"
|
|
MISSING_EMAIL = "MISSING_EMAIL"
|
|
USER_NOT_FOUND = "USER_NOT_FOUND"
|
|
ALREADY_VERIFIED = "ALREADY_VERIFIED"
|
|
MISSING_EMAIL_OR_PASSWORD = "MISSING_EMAIL_OR_PASSWORD"
|
|
INVALID_CREDENTIALS = "INVALID_CREDENTIALS"
|
|
NOT_VERIFIED = "NOT_VERIFIED"
|
|
ACCOUNT_MARKED_FOR_DELETION = "ACCOUNT_MARKED_FOR_DELETION"
|
|
ALREADY_MARKED = "ALREADY_MARKED" |