Problem/Motivation
When users cancel their own account, they're displayed with the message "A confirmation request to cancel your account has been sent to your e-mail address" - which is absolutely correct for this case.
However, when an admin cancels a user account and chooses to e-mail a confirmation request to such user, the same message is displayed - which is not correct. It should be something along the line of "A confirmation request to cancel this user account has been sent to the user’s e-mail address"
When an admin cancels a user account without choosing to e-mail a confirmation request to the user, all is well and a correct message is displayed (user@email.com was deleted).
Steps required to reproduce
- As an admin, click the 'cancel account' link for any user (other than yourself)
- Tick the 'Require e-mail confirmation to cancel account' option
- Click the 'cancel account' button
Expected behavior
The admin should see a message similar to "A confirmation request to cancel this user account has been sent to the user’s e-mail address".
What happened instead?
The admin sees the message "A confirmation request to cancel your account has been sent to your e-mail address" - which would be the expected behaviors if a user was cancelling his/her own account.
This message leads to confusion for admins (who actually reported this bug).
Proposed resolution
Change the message to:
A confirmation request to cancel the account %name has been sent to the user's email address.