From deeced81c37c74c830219b8b75f068e8593441fa Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:30:05 -0700 Subject: [PATCH] make sure passwordIsBreached is a boolean --- .../auth/src/angular/input-password/input-password.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/auth/src/angular/input-password/input-password.component.ts b/libs/auth/src/angular/input-password/input-password.component.ts index c9c932a9d3a..633cb51b7be 100644 --- a/libs/auth/src/angular/input-password/input-password.component.ts +++ b/libs/auth/src/angular/input-password/input-password.component.ts @@ -356,7 +356,7 @@ export class InputPasswordComponent implements OnInit { ): Promise { // 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;