deps: Update zxcvbn to 4.4.1

Update zxcvbn to 4.4.1, and change `crack_time` to
`crack_times_seconds` because `crack_time` has been changed to
`crack_times_seconds` in 4.4.1.
This commit is contained in:
Rafid Aslam 2016-12-06 15:28:59 +07:00 committed by Tim Abbott
parent d11cdac876
commit 0951b838ca
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ function password_quality(password, bar) {
if (bar !== undefined) {
// Compute a quality score in [0,1].
var result = zxcvbn(password);
var quality = Math.min(1, Math.log(1 + result.crack_time) / 22);
var quality = Math.min(1,Math.log(1 + result.crack_times_seconds.
offline_slow_hashing_1e4_per_second) / 22);
// Even if zxcvbn loves your short password, the bar should be filled
// at most 1/3 of the way, because we won't accept it.

View File

@ -4,7 +4,7 @@ set -x
output_path=static/third/zxcvbn
commit_file_path=$output_path/commit
commit=0890678ede1488ecb02cda7eb793cd308a59c49d # Change this to upgrade
commit=f15783727ac828f5a7e54ff5aed8dd8b38a62ffd # Change this to upgrade
mkdir -p "$output_path"