Closed
Description
_1 Upvote_ Before Flarum reached beta, we had implemented a feature that allowed users to delete their account, purging it completely from the database. However, we quickly realised this was problematic for various reasons.
Instead we want to offer users the ability to permanently deactivate their account: make it so it can't be logged into, and remove their email and other personal info from the database.
What needs to be done:
- Create a DeleteAccountModal which gives users info about what it means and confirms that they want to proceed
- Add a button to the SettingsPage (
accountItems
) that opens the DeleteAccountModal - Make the DELETE /users/{id} API endpoint only disable the account for non-admin users, rather than deleting it completely...
- ...where "disabling" means setting their email to null, and destroying their avatar/bio.
- We would want this to require a sudo mode token (Improve API security #250)