[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:35:23 UTC 2025


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

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60306" 60306]:
 {{{
 #!CommitTicketReference repository="" revision="60306"
 Login and Registration: Ensure a revealed password is reverted to the
 `password` input type upon form submission.

 This means if a password has been toggled to visible by the user, or is
 visible by default, it gets reverted to the `password` type to prevent
 browsers from remembering it as a previously-provided value and
 potentially displaying it as an autofill option on non-password inputs.

 Props jamieburchell, sukhendu2002, vgnavada

 Fixes #62147
 }}}

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


More information about the wp-trac mailing list