Make WordPress Core

Ticket #31772: 31772.2.patch

File 31772.2.patch, 790 bytes (added by BevanR, 10 years ago)

Improved documentation.

  • src/wp-admin/js/password-strength-meter.js

     
    1818                        if (password1 != password2 && password2 && password2.length > 0)
    1919                                return 5;
    2020
    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 );
    2225                        return result.score;
    2326                },
    2427