From 1fec495ed1eaa67693fac5b6486d389bc02a76fa Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Tue, 6 May 2025 15:04:19 -0700 Subject: [PATCH] [PM-18721] update PasswordInputResult --- .../input-password/input-password.component.ts | 5 +++-- .../src/angular/input-password/input-password.mdx | 13 ++++++------- 2 files changed, 9 insertions(+), 9 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 57fdca69cd3..5d20fcf4d35 100644 --- a/libs/auth/src/angular/input-password/input-password.component.ts +++ b/libs/auth/src/angular/input-password/input-password.component.ts @@ -83,12 +83,13 @@ export enum InputPasswordFlow { } interface InputPasswordForm { + currentPassword?: FormControl; + newPassword: FormControl; newPasswordConfirm: FormControl; - newPasswordHint?: FormControl; + checkForBreaches?: FormControl; - currentPassword?: FormControl; rotateUserKey?: FormControl; } diff --git a/libs/auth/src/angular/input-password/input-password.mdx b/libs/auth/src/angular/input-password/input-password.mdx index dfb88fa7286..77542718f4c 100644 --- a/libs/auth/src/angular/input-password/input-password.mdx +++ b/libs/auth/src/angular/input-password/input-password.mdx @@ -193,20 +193,19 @@ When the form is submitted, the `InputPasswordComponent` does the following in o ```typescript export interface PasswordInputResult { - // Properties starting with "current..." are included if the flow is ChangePassword or ChangePasswordWithOptionalUserKeyRotation currentPassword?: string; currentMasterKey?: MasterKey; currentServerMasterKeyHash?: string; currentLocalMasterKeyHash?: string; newPassword: string; - newPasswordHint: string; - newMasterKey: MasterKey; - newServerMasterKeyHash: string; - newLocalMasterKeyHash: string; + newPasswordHint?: string; + newMasterKey?: MasterKey; + newServerMasterKeyHash?: string; + newLocalMasterKeyHash?: string; - kdfConfig: KdfConfig; - rotateUserKey?: boolean; // included if the flow is ChangePasswordWithOptionalUserKeyRotation + kdfConfig?: KdfConfig; + rotateUserKey?: boolean; } ```