~canonical-sysadmins/wordpress/4.7.2

« back to all changes in this revision

Viewing changes to wp-admin/js/password-strength-meter.js

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
                        if (password1 != password2 && password2 && password2.length > 0)
19
19
                                return 5;
20
20
 
 
21
                        if ( 'undefined' === typeof window.zxcvbn ) {
 
22
                                // Password strength unknown.
 
23
                                return -1;
 
24
                        }
 
25
 
21
26
                        var result = zxcvbn( password1, blacklist );
22
27
                        return result.score;
23
28
                },
70
75
                }
71
76
        };
72
77
 
73
 
        // Backwards compatibility.
 
78
        // Back-compat.
74
79
        passwordStrength = wp.passwordStrength.meter;
75
 
})(jQuery);
 
 
b'\\ No newline at end of file'
 
80
})(jQuery);