Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#5052] Allow users to request account closure #7874

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

chrismytton
Copy link
Member

Relevant issue(s)

Fixes #5052

What does this do?

Adds a "Close account" link to the users profile, which when clicked takes the user to a confirmation screen explaining what happens when an account is closed. If they confirm then an account closure request is created and a confirmation email is sent to the user.

There is then a list of account closure requests in the admin which an admin can go through. That list has a link to the user's account, and a close button, which closes the account directly.

Why was this needed?

  • Allow users to request to have their accounts closed.
  • To reduce the administrative workload related to "right to erasure" requests.

Implementation notes

  • Adds a Users::CloseAccountController with new and create actions for users to request account closure.
  • Adds an AccountClosureRequest model to manage closure requests.
  • Sends email notifications to users upon request of account closure.
  • Updates admin interface to allow viewing and management of account closures.
  • Adds links for account closure in both user profile and admin interface.

Video

Screen.Recording.2023-08-29.at.08.29.24-silent.mov

Notes to reviewer

  • Should the user be logged out after they have requested account closure?
  • Should the "Close account" button on the user's profile be more (or less!) prominent?
  • Is it now too easy for an admin to close an account?
  • Should the list of account closure requests be added to the admin homepage "todo" list?

@mysociety-pusher mysociety-pusher force-pushed the 5052-allow-users-to-request-account-closure branch 2 times, most recently from 9b0d9f4 to c874386 Compare August 29, 2023 09:05
@chrismytton chrismytton requested a review from garethrees August 29, 2023 13:08
@gbp gbp changed the title Allow users to request account closure [#5052] Allow users to request account closure Oct 20, 2023
@mysociety-pusher mysociety-pusher force-pushed the 5052-allow-users-to-request-account-closure branch from c874386 to 20b4267 Compare November 3, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow users to close their accounts and remove their username/profile
2 participants