Problem/Motivation

  • Showing username is security problem as usernames should never shown on websites. With real names you cannot login and try passwords, with a username you can. See https://www.drupal.org/project/drupal/issues/3241232
  • Some sites are keeping the username internally
  • We should ALWAYS show display name instead of username

Proposed resolution

Fix it everywhere. Probably, the user selection widget is more difficult and should not be in the scope of this issue (see #2987189: Realname support)

Remaining tasks

None.

User interface changes

Users will see the display name rather than the username on UIs (except user selection autocomplete that will be handled in a followup)

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

claudiu.cristea created an issue. See original summary.

claudiu.cristea’s picture

Title: Show user display name instead of username everywhere » [PP-1] Show user display name instead of username everywhere
claudiu.cristea’s picture

Status: Active » Postponed
claudiu.cristea’s picture

Title: [PP-1] Show user display name instead of username everywhere » Show user display name instead of username everywhere
claudiu.cristea’s picture

Status: Postponed » Active
claudiu.cristea’s picture

Status: Active » Needs review

Ready for review. Note that in some places, especially in tests, we're still using ::getAccountName() because that belongs to user selector widget and fixing that is not in the scope of this issue.

claudiu.cristea’s picture

While working on this I've opened #3484915: Unify verb: ban/unban -> block/unblock as a followup.

dxvargas’s picture

The user display name is being shown instead of the username everywhere (except user selection autocomplete as mentioned in the issue's description). The code is good with many nice improvements. I mark as RTBC.

dxvargas’s picture

Status: Needs review » Reviewed & tested by the community

  • claudiu.cristea committed ee70308e on 3.0.x
    Issue #3484561 by claudiu.cristea, dxvargas: Show user display name...
claudiu.cristea’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for review

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.