[wp-trac] [WordPress Trac] #47924: Reset password: The submit button is enabled when the password input field is empty

WordPress Trac noreply at wordpress.org
Thu Aug 22 22:58:53 UTC 2019


#47924: Reset password: The submit button is enabled when the password input field
is empty
------------------------------------+-----------------------------
 Reporter:  henry.wright            |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  needs-patch             |     Focuses:  ui
------------------------------------+-----------------------------

Comment (by adamsilverstein):

 @henrywright Thanks for the bug report! That does seem like unexpected
 behavior.

 I have attempted a fix in [attachment:"47924.diff"] - in this patch, when
 the password field is emptied we

 * uncheck weak password checkbox
 * disable the submit button

 I found that the checkbox needed to be unchecked, otherwise as you start
 typing again the submit button would remain disabled. This feels a little
 more natural as well - after clearing the field and the checkbox
 disappears, it seems right that it reappears unchecked.

 Can you give this a test?

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


More information about the wp-trac mailing list