From f52d5a171b25031238cf429c05766c1f2df1ff15 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:40:54 -0700 Subject: [PATCH] update documentation, variable naming --- .../angular/input-password/input-password.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 633cb51b7be..9920b86ba38 100644 --- a/libs/auth/src/angular/input-password/input-password.component.ts +++ b/libs/auth/src/angular/input-password/input-password.component.ts @@ -56,8 +56,8 @@ import { PasswordInputResult } from "./password-input-result"; export enum InputPasswordFlow { /** * - Input: New password - * - Input: Confirm new password - * - Input: Hint + * - Input: New password confirm + * - Input: New password hint * - Checkbox: Check for breaches */ SetInitialPassword, @@ -358,9 +358,9 @@ export class InputPasswordComponent implements OnInit { const passwordIsBreached = checkForBreaches && (await this.auditService.passwordLeaked(newPassword)) > 0; - const passwordWeak = passwordStrengthScore != null && passwordStrengthScore < 3; + const passwordIsWeak = passwordStrengthScore != null && passwordStrengthScore < 3; - if (passwordIsBreached && passwordWeak) { + if (passwordIsBreached && passwordIsWeak) { const userAcceptedDialog = await this.dialogService.openSimpleDialog({ title: { key: "weakAndExposedMasterPassword" }, content: { key: "weakAndBreachedMasterPasswordDesc" }, @@ -370,7 +370,7 @@ export class InputPasswordComponent implements OnInit { if (!userAcceptedDialog) { return false; } - } else if (passwordWeak) { + } else if (passwordIsWeak) { const userAcceptedDialog = await this.dialogService.openSimpleDialog({ title: { key: "weakMasterPasswordDesc" }, content: { key: "weakMasterPasswordDesc" },