[wp-trac] [WordPress Trac] #35715: edit_user() doesn't check for empty password (pass1).

WordPress Trac noreply at wordpress.org
Tue Mar 22 16:32:07 UTC 2016


#35715: edit_user() doesn't check for empty password (pass1).
-------------------------------------------------+-------------------------
 Reporter:  gitlost                              |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  reviewing
Component:  Users                                |   Milestone:  4.5
 Severity:  normal                               |     Version:  4.4
 Keywords:  good-first-bug has-patch has-        |  Resolution:
  screenshots                                    |     Focuses:
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 [attachment:35715.diff] :
 * Add a documentation line explaining what the check is for
 * Add an additional check for blank passwords in the later conditional
 that checks pass1 vs. pass2, without this entering a password in field2
 while leaving field 1 blank would result in a double error message:

 [[Image(http://cl.ly/2a0x2f132b3p/Add_New_User__10up_BUC__WordPress_2016-03-22_10-27-53.jpg)]]

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


More information about the wp-trac mailing list