Wrong message on cancelling account with e-mail confirmation request

Created on 21 June 2018, over 6 years ago
Updated 12 February 2024, 9 months ago

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

  1. As an admin, click the 'cancel account' link for any user (other than yourself)
  2. Tick the 'Require e-mail confirmation to cancel account' option
  3. 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.

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
User moduleย  โ†’

Last updated about 5 hours ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jaxtheking

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024