From aa8c5b15165190f08d2e6b560e719cf1a64299be Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Tue, 16 Jul 2024 09:36:05 -0700 Subject: [PATCH] make minimumLength msg update if mp policy is enforced (#10105) --- libs/angular/src/auth/components/change-password.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/angular/src/auth/components/change-password.component.ts b/libs/angular/src/auth/components/change-password.component.ts index 5e9b31138e..d6c0ec9271 100644 --- a/libs/angular/src/auth/components/change-password.component.ts +++ b/libs/angular/src/auth/components/change-password.component.ts @@ -62,6 +62,10 @@ export class ChangePasswordComponent implements OnInit, OnDestroy { (enforcedPasswordPolicyOptions) => (this.enforcedPolicyOptions ??= enforcedPasswordPolicyOptions), ); + + if (this.enforcedPolicyOptions?.minLength) { + this.minimumLength = this.enforcedPolicyOptions.minLength; + } } ngOnDestroy(): void {