Problem/Motivation
Why is the login user name also used for screen display?
Just don't understand why drupal uses a login as a user name, it is not secure.
Secure systems never use login for anything like a screen name because it allows others to easily know the first component to access your account.
Proposed resolution
User name should be renamed to login and add a field named user name.
Also like many have asked, at this time make a radio selection box for
1 allow login with user login or email
2 login only
3 email only (system hides login field)
Remaining tasks
all
User interface changes
update fields in /admin/config/people/accounts/form-display/ & /display/
add login option to /admin/config/people/accounts
API changes
any module using name can continue using it for display. any module using name for login purpose would need to change.
Data model changes
change
user_data_field:name to user_data_field:login
add
user_data_field:name
Original report by [username]
I did search, not sure if anyone else has suggested this.
Comments
Comment #2
dsp1 commentedComment #3
idebr commentedHi dsp1,
This is being fixed in #2629286: Use getDisplayName() for user names consistently. I'll close this issue as a duplicate, so we can focus our efforts in the related issue.
Comment #4
dsp1 commentedComment #5
avpadernoComment #6
dsp1 commentedI know this seems like a duplicate, that "duplicate" has not been fixed for years.
That duplicate is more about fixing issues so real name module works correctly.
I would like to see this security issue fixed in core.
How about a feature to set any user field, by checkbox setting to make the field the display name field.
ie. the checkbox tells the system to make that field the getDisplayName()
So you add a field, could be named, name, then check a box or button that makes the field the display in the whole system.
This way the username field is hidden so hackers cannot use that username to try to login.
Why is there such resistance from the higher ups to fix this security issue?
Comment #7
dsp1 commented