mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 15:46:04 +01:00
09e92faa6c
The library was added in [25156]. props duck_. see #21737. Built from https://develop.svn.wordpress.org/trunk@25157 git-svn-id: http://core.svn.wordpress.org/trunk@25136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
7 lines
198 B
JavaScript
7 lines
198 B
JavaScript
function passwordStrength(password1, username, password2) {
|
|
if (password1 != password2 && password2.length > 0)
|
|
return 5;
|
|
var result = zxcvbn( password1, [ username ] );
|
|
return result.score;
|
|
}
|