feat(account): delete my account in the app #63
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/account-deletion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 4 of
docs/website/ACCOUNT_DELETION.md§6 (design: §4.3). Needs core at MODULE_API 1.20.0 (website#232, merged).What it does
account/delete) shows what goes, what stays and the staff note, in the website's words. Then it asks for the typed username, the password and, when two-factor is on, an authenticator or recovery code. Delete stays off until the name matches. An account with no password gets the set-a-password note and no form.MeApi.deleteAccountsendsDELETE /auth/me/accountand reads the raw response, so each refusalcode(username_mismatch,wrong_password,code_required,wrong_code,password_required,last_admin,DEMO_LOCKED, and 429) becomes its own sentence.AuthRepository.forgetDeletedAccount()does what a sign-out does, without the server calls. It clears the inbox snapshot, the trust token (a sign-out keeps it, but the account is gone) and the session. Dropping the session also drops the push registration throughPushManager's observer. This step can't be cancelled.Checked
testDebugUnitTest,lintDebug(nothing in the new code) andassembleDebugall pass locally.AccountDeletionRepositoryTest, which maps each refusal and covers 429, an unknown code, no answer and the request body.AccountDeletionTestcovers the confirm rule, the staff rule and each refusal's sentence.s22_ultraemulator against a local core at7bd93b8, with two throwaway players:Docs: RunicGateway/docs PR (step 4 recorded as built).
Co-Authored-Bytrailer.🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY