Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294476

Wrong message on cancelling account with e-mail confirmation request

$
0
0

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

In the case where a user is cancelling their own account display the original message. In the case where anyone else is cancelling a user account display the message:

A confirmation request to cancel the account %name has been sent to the user's email address.

Remaining tasks

Review

User interface changes

A new message in the case that one user is cancelling another user's account.

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet


Viewing all articles
Browse latest Browse all 294476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>