Ticket #31772: 31772.2.patch
File 31772.2.patch, 790 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/password-strength-meter.js
18 18 if (password1 != password2 && password2 && password2.length > 0) 19 19 return 5; 20 20 21 var result = zxcvbn( password1, blacklist ); 21 // Analyze the strength of the first part of the password. The 'zxcvbn' library takes a long time to analyse longer passwords. This causes the browser UI to freeze. 22 // @todo Update zxcvbn once it analyzes long passwords quickly. 23 // @see https://github.com/dropbox/zxcvbn/issues/69 24 var result = zxcvbn( password1.substr(0, 128), blacklist ); 22 25 return result.score; 23 26 }, 24 27