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.
Issue fork private_message-3484561
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
Comment #3
claudiu.cristeaThis is postponed on #3482504: Fix test pipeline issues
Comment #4
claudiu.cristeaComment #5
claudiu.cristea#3482504: Fix test pipeline issues is merged
Comment #6
claudiu.cristeaComment #7
claudiu.cristeaReady 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.Comment #8
claudiu.cristeaWhile working on this I've opened #3484915: Unify verb: ban/unban -> block/unblock as a followup.
Comment #9
dxvargas commentedThe 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.
Comment #10
dxvargas commentedComment #12
claudiu.cristeaThank you for review