[wp-trac] [WordPress Trac] #34905: zxcvbn() not defined (and making it impossible to edit an existing user)

WordPress Trac noreply at wordpress.org
Tue Dec 8 03:19:56 UTC 2015


#34905: zxcvbn() not defined (and making it impossible to edit an existing user)
--------------------------+------------------------------
 Reporter:  wp-plugin@…   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  4.3.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+------------------------------
Changes (by peterwilsoncc):

 * keywords:  reporter-feedback => needs-patch
 * focuses:   => javascript


Comment:

 Able to recreate

 * In developer tools enable network throttling to emulate a poor network
 (2G)
 * Edit a user
 * Before the images/assets have loaded, click the generate password button
 * The generated password may remain blank if the JavaScript in the HTML
 footer is still loading
 * Start typing a password
 * `zxcvbn` is undefined and an error will be thrown in the browser
 console.

 Using Chrome 47.0/OSX 10.11.1 the browser recovers once `zxcvbn` is
 available and the strength meter starts working.

 PROPOSED SOLUTION: `wp.passwordStrength.meter` fails gracefully if
 `zxcvbn` is undefined.

 * returns `-1` for strength unknown (new string required)
 * users need to accept the possibly weak password (string change/new
 string may be required)

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


More information about the wp-trac mailing list