1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02:00

Stop showing score 3 passwords as weak passwords (#445)

This commit is contained in:
Naoaki Iwakiri 2020-01-27 22:30:19 +09:00 committed by Kyle Spearrin
parent 00b9f4cab6
commit 6e66df59b7

View File

@ -63,7 +63,7 @@ export class WeakPasswordsReportComponent extends CipherReportComponent implemen
this.passwordStrengthCache.set(cacheKey, result.score); this.passwordStrengthCache.set(cacheKey, result.score);
} }
const score = this.passwordStrengthCache.get(cacheKey); const score = this.passwordStrengthCache.get(cacheKey);
if (score != null && score <= 3) { if (score != null && score <= 2) {
this.passwordStrengthMap.set(c.id, this.scoreKey(score)); this.passwordStrengthMap.set(c.id, this.scoreKey(score));
weakPasswordCiphers.push(c); weakPasswordCiphers.push(c);
} }