users: move account deletion endpoint to /users/:id/deactivate.

Move the account deletion endpoint from /maintenance/users/deletion to either:

* https://danbooru.donmai.us/users/deactivate
* https://danbooru.donmai.us/users/:id/deactivate

This incidentally allows the Owner-level user to deactivate accounts belonging to other users. This
is meant for things like deactivating inactive accounts with invalid or abusive names. This is
limited to accounts below Gold level for security.
This commit is contained in:
evazion
2022-11-05 18:31:49 -05:00
parent 59872d2ed5
commit 3ffde5b23d
10 changed files with 163 additions and 112 deletions

View File

@@ -353,8 +353,8 @@
<p><em>Summary: You may deactivate your account, but we may
retain your IP address and your public contributions to the Site.</em></p>
<p>If you would like to delete your account, you may request your
account to be deactivated <%= link_to "here", maintenance_user_deletion_path %>.</p>
<p>If you wish to to close your <%= @app_name %> account, you may deactivate your account
<%= link_to "here", deactivate_users_path %>.</p>
<p>When your account is deactivated, we will delete your non-public personal
information from our active systems, including your email address,