Add a new /auth/ page to remove your own account. It should list all the projects that the person is an admin of (if any), and tell them that those projects will be orphaned unless they have another admin. Then ask if they're really sure, and require the user to enter their password to confirm.
Upon submitting that form, call a new disable_user
method on the AuthenticationProvider
. Implement that method in the LocalAuthenticationProvider, by setting the disabled
flag for the User record. (That flag is already in use, just now way to set it yet)
Link to the form from the bottom of the main account page. It won't have to be accessed much.
Closed #583.
je/42cc_7372
Updated
je/42cc_7372
with .ini option, as discussed in [#7373]8766cd2..c53c02c t583_allow_user_to_disable_account -> je/42cc_7372