1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 13:10:17 +00:00

make sure passwordIsBreached is a boolean

This commit is contained in:
rr-bw
2025-04-03 12:30:05 -07:00
parent d17c7e5a6b
commit deeced81c3

View File

@@ -356,7 +356,7 @@ export class InputPasswordComponent implements OnInit {
): Promise<boolean> {
// Check if the password is breached, weak, or both
const passwordIsBreached =
checkForBreaches && (await this.auditService.passwordLeaked(newPassword));
checkForBreaches && (await this.auditService.passwordLeaked(newPassword)) > 0;
const passwordWeak = passwordStrengthScore != null && passwordStrengthScore < 3;