Make WordPress Core

Opened 4 years ago

Closed 6 weeks ago

#40275 closed enhancement (fixed)

Use a monospace-type font to display passwords

Reported by: robdxw Owned by: ryelle
Milestone: 5.8 Priority: normal
Severity: normal Version:
Component: Users Keywords: good-first-bug has-patch
Focuses: ui, css Cc:


There are a number of places where passwords are echoed back to users e.g. in wp-activate.php when a user activates their account, or when a password is suggested when a user first registers.

Because these fields are generally displayed in Helvetica Neue or Arial, there is the potential for character confusion if a user transcribes their password, rather than copy-and-pasting. This would be eliminated by using a monospace-type font to display the password.

E.g. compare




Attachments (4)

Screen Shot 2017-03-27 at 14.47.23.png (38.1 KB) - added by robdxw 4 years ago.
Example on user profile age.
40275.diff (390 bytes) - added by utz119 13 months ago.
40275.png (50.2 KB) - added by utz119 13 months ago.
The monospace font has been added to the password field.
40275.1.diff (416 bytes) - added by Hareesh Pillai 3 months ago.
Patch updated against trunk

Download all attachments as: .zip

Change History (12)

4 years ago

Example on user profile age.

#1 @sabernhardt
14 months ago

  • Focuses ui css added
  • Keywords needs-design-feedback added
  • Version 4.8 deleted

This ticket was mentioned in Slack in #core by noisysocks. View the logs.

13 months ago

#3 @mikeschroder
13 months ago

  • Keywords good-first-bug added
  • Milestone changed from Awaiting Review to Future Release

Sorry for the very slow response on this ticket!

It was brought up in triage today, and I think it's a great idea -- this seemed to be consensus in the meeting as well.

Moving it to Future Release, and adding good-first-bug so that it gets a bit more visibility from folks.

#4 @SergeyBiryukov
13 months ago

  • Component changed from General to Users

13 months ago

13 months ago

The monospace font has been added to the password field.

#5 @utz119
13 months ago

  • Keywords has-patch added

#6 @hedgefield
8 months ago

  • Keywords needs-design-feedback removed

Looks good! Thanks for making a patch, good suggestion. What needs to be done here to ship this?

@Hareesh Pillai
3 months ago

Patch updated against trunk

#7 @Hareesh Pillai
3 months ago

  • Milestone changed from Future Release to 5.8

This ticket has design feedback and an updated patch.
Adding it to the upcoming milestone.

#8 @ryelle
6 weeks ago

  • Owner set to ryelle
  • Resolution set to fixed
  • Status changed from new to closed

In 50846:

Login, Users: Use a monospace font to display passwords.

When typing a password, the input field should use a monospace font. It's easier to distinguish letters in monospace fonts, which makes it easier to accurately read passwords.

Props robdxw, utz119, hedgefield, hareesh-pillai.
Fixes #40275.

Note: See TracTickets for help on using tickets.