From 2e056a0f41f1217b6a4c2c0e347283a1bd6c4aba Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Thu, 3 Apr 2025 13:19:27 -0700 Subject: [PATCH] update @Input kdfConfig initial value --- .../src/angular/input-password/input-password.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 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 9920b86ba38..2a99b598e84 100644 --- a/libs/auth/src/angular/input-password/input-password.component.ts +++ b/libs/auth/src/angular/input-password/input-password.component.ts @@ -108,7 +108,7 @@ export class InputPasswordComponent implements OnInit { protected secondaryButtonTextStr: string = ""; protected InputPasswordFlow = InputPasswordFlow; - private kdfConfig: KdfConfig = DEFAULT_KDF_CONFIG; + private kdfConfig?: KdfConfig; private minHintLength = 0; protected maxHintLength = 50; protected minPasswordLength = Utils.minimumPasswordLength; @@ -299,7 +299,7 @@ export class InputPasswordComponent implements OnInit { HashPurpose.LocalAuthorization, ); - passwordInputResult.currentPassword = this.formGroup.get("currentPassword")?.value; + passwordInputResult.currentPassword = currentPassword; passwordInputResult.currentMasterKey = currentMasterKey; passwordInputResult.currentServerMasterKeyHash = currentServerMasterKeyHash; passwordInputResult.currentLocalMasterKeyHash = currentLocalMasterKeyHash;