WordPress/wp-admin/js/password-strength-meter.min.js

1 line
719 B
JavaScript
Raw Normal View History

var passwordStrength;window.wp=window.wp||{},function(l){wp.passwordStrength={meter:function(t,e,n){return l.isArray(e)||(e=[e.toString()]),t!=n&&n&&0<n.length?5:zxcvbn(t,e).score},userInputBlacklist:function(){var t,e,n,r,a=[],i=[],s=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(a.push(document.title),a.push(document.URL),e=s.length,t=0;t<e;t++)0!==(r=l("#"+s[t])).length&&(a.push(r[0].defaultValue),a.push(r.val()));for(n=a.length,t=0;t<n;t++)a[t]&&(i=i.concat(a[t].replace(/\W/g," ").split(" ")));return i=l.grep(i,function(t,e){return!(""===t||t.length<4)&&l.inArray(t,i)===e})}},passwordStrength=wp.passwordStrength.meter}(jQuery);