Problem/Motivation

Drupal uses the word "Cancel" to describe the deletion and disabling of user accounts. This leads to a duplication of the word "Cancel" on the form as

  • "Cancel account": Delete or disable the account. Depending on the settings for user accounts, the user might see different options above the button to choose from or just the button.
  • "Cancel" = abort the action.

This problem is addressed in #1649286: Reword user cancellation form buttons with a discussion whether to replace "Cancel" with "Abort" and some other proposals. The approach that's most consistent with buttons to confirm or abort actions to keep "Cancel" for aborting and change the confirmation button to "Apply changes".

However then we end up with a disconnect between the question Are you sure you want to cancel your account? and the cancel button that aborts the action.

Proposed resolution

"Cancellation" was probably chosen because it can cover the options "Disable" and "Delete" without misleading the user. "Remove" is another word that could fulfill this function and that would not clash with the filter button.
Changes would need to be done on the Account settings page, on the user account form, in the actions on the People page, and in the permissions.

Remaining tasks

User interface changes

THis is a UI text change.

API changes

None.

Data model changes

None.

Comments

ifrik created an issue. See original summary.

wturrell’s picture

As mentioned in #1649286: Reword user cancellation form buttons, this was, I believe, the main discussion when these options were first added:

#8: Let users cancel their accounts

ifrik’s picture

Thanks wturrell,
that's really useful, and it shows how assumptions of what is desired by users (or even required by law) can change over time.

ifrik’s picture

Issue summary: View changes

Updated the issue summary to move adding a separate message into a new issue #2978063: Give information to user whether account is disabled or deleted when cancelled

ifrik’s picture

Title: Reword "Cancelling" of user accounts and add details » Reword "Cancelling" of user accounts
Related issues: +#2978063: Give information to user whether account is disabled or deleted when cancelled
wturrell’s picture

There's potentially a third issue here with the last option:

Delete the account and make its content belong to the Anonymous user.

This feels like an ambiguous message for end users, who may wonder as to the identity of the (by definition, undiscoverable?) "Anonymous user", and what he or she might do with their content.

Perhaps administrators should still see the original message, but other roles get:

Delete the account, keep its content, but no longer attribute it to you.

Note in the source, the word Anonymous comes from user.settings.anonymous

wturrell’s picture

Also…

That screen (either version) with the 'Cancel account' button: it very much gives the impression clicking the button is the final stage of the process, whereas actually what happens when you submit it is you get the green status message below and are sent the 'Account Cancellation confirmation' email as specified in /admin/config/people/accounts (clicking the link it that one really is irreversible).

A confirmation request to cancel your account has been sent to your email address.

We ought to mention on the first screen there's an email confirmation process.

ifrik’s picture

Thanks wturrell,
that are good points. However, whether a confirmation email is required depends on the account settings.
Could you add this to [#2978603]? Then we can deal in that issue with text that should be generated based on the account settings, and keep this on to just change the existing text that is displayed to users independent of those settings.

wturrell’s picture

#2978603 doesn't appear to exist?
EDIT: Ah sorry, #2978063: Give information to user whether account is disabled or deleted when cancelled...

I'm a bit puzzled about the ability to turn off the cancellation email. The registration confirmation can obviously be toggled, but I see nothing for cancellation (other than 'Notify user when account is cancelled', which is a checkbox on the (second) Account Cancelled mail, default off). Also nothing besides 'Cancel own account' and 'Select method for cancelling own account' in Permissions.

And yet, in the source (/core/modules/user/src/Form/UserCancelForm.php:73) there's code for a "Require email confirmation to cancel account'" checkbox, which I don't see anywhere despite being logged in as user1.

Suspiciously, on all my 8.5.4 installs, if you go to /admin/config/people/accounts, scroll down and click on 'Account cancellation confirmation', the email body textarea is only 3 rows high, much shorter than the rest, so I'm wondering if that's broken..

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

aaronmchale’s picture

Status: Active » Closed (duplicate)
Issue tags: -ui text
Related issues: +#3199972: Improve user interface text on the account cancellation screen

Marking this as a duplicate of #3199972: Improve user interface text on the account cancellation screen, which will address the issues mentioned here and is being actively iterated on at Drupal UX Meetings.