[wp-trac] [WordPress Trac] #62147: Revealed passwords should change back to password type when submitting the form

WordPress Trac noreply at wordpress.org
Fri Jun 13 10:11:12 UTC 2025


#62147: Revealed passwords should change back to password type when submitting the
form
-------------------------------------+-------------------------------------
 Reporter:  jamieburchell            |       Owner:  johnbillion
     Type:  enhancement              |      Status:  reviewing
 Priority:  normal                   |   Milestone:  6.9
Component:  Login and Registration   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  good-first-bug has-      |     Focuses:  javascript,
  patch has-screenshots has-test-    |  administration
  info commit                        |
-------------------------------------+-------------------------------------
Changes (by johnbillion):

 * keywords:  good-first-bug has-patch has-screenshots has-test-info =>
     good-first-bug has-patch has-screenshots has-test-info commit


Comment:

 I've tested [https://github.com/WordPress/wordpress-develop/pull/8223 PR
 8223] and it's working well.

 The test reports above were not testing the actual proposed change, which
 is that when the form is submitted the password input type is reverted to
 `password` if it's been toggled to `text` via the Show button. I've tested
 this using a breakpoint in the browser and confirmed that the input type
 and the toggled button get reverted prior to the form being submitted.

 I must admit that I was unable to get my browser to remember the plain
 text password value prior to applying the patch but I suspect it depends
 on your browser settings for remembering submitted form data. I'm happy to
 trust the advice from the gov.uk design service on this occasion.

 == Login screen

 [[Image(https://i.ibb.co/kgXb4PZ2/2025-06-13-10-47-54.png)]]

 == User profile screen

 [[Image(https://i.ibb.co/pvz96f4f/2025-06-13-10-46-23.png)]]

 == New user screen

 [[Image(https://i.ibb.co/bgnFTL6v/2025-06-13-10-50-21.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62147#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list