The checkbox is shown when an administrator is cancelling several accounts from admin/people, however, even marking the checkbox, if you click on "Cancel accounts" accounts are cancelled, and no email is sent.

Steps to reproduce:
- go to admin/people
- select several accounts
- select "cancel the selected user accounts" from the update list, click "update" button
- the list of canceling methods appear, and the checkbox 'Require e-mail confirmation to cancel account' is shown.
- mark the checkbox
- click cancel accounts button

At this point, accounts are cancelled, and no email is sent.

I don't know what is expected to happen.. should an email with a cancellation link be sent to the users but not being cancelled, or is the checkbox that has not to be there?

Comments

Danic’s picture

Category: bug » task

When a user has administrative privileges, the account will be deleted immediately. This works as designed (see user_cancel_confirm_form_submit()). But we should clarify that on the form. Either by just adding some sentences or creating something that does not show that checkbox when an admin is logged on.

David_Rothstein’s picture

Status: Active » Closed (duplicate)

Closing as a duplicate of #1599286: User cancel confirmation does not work with user cancel action.

(Although this issue is older, that one has a patch.)