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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user