mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-02 11:09:44 +02:00
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;
|
|
}
|