diff --git a/packages/modules/ui/src/lib/components/organisms/authn/confirm-password/confirm-password.component.html b/packages/modules/ui/src/lib/components/organisms/authn/confirm-password/confirm-password.component.html index fc710b3b..14f93afe 100644 --- a/packages/modules/ui/src/lib/components/organisms/authn/confirm-password/confirm-password.component.html +++ b/packages/modules/ui/src/lib/components/organisms/authn/confirm-password/confirm-password.component.html @@ -45,13 +45,13 @@ This field is required. This field must: - have at least 6 characters in length- have at least 6 characters length - contain a lowercase letters- contain a lowercase letter - contain a uppercase letters- contain a uppercase letter - contain a number
Confirm password
diff --git a/packages/modules/ui/src/lib/components/organisms/authn/password-recovery/password-recovery.component.html b/packages/modules/ui/src/lib/components/organisms/authn/password-recovery/password-recovery.component.html index 3f46c431..b12bc0ed 100644 --- a/packages/modules/ui/src/lib/components/organisms/authn/password-recovery/password-recovery.component.html +++ b/packages/modules/ui/src/lib/components/organisms/authn/password-recovery/password-recovery.component.html @@ -26,8 +26,8 @@
Reset Password diff --git a/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.html b/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.html index 57f3e622..43f2804b 100644 --- a/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.html +++ b/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.html @@ -40,6 +40,20 @@ /> This field is required. + This field must: + - have at least 6 characters length + - contain a lowercase letter + - contain a uppercase letter + - contain a number + - contain a special character

@@ -58,8 +72,8 @@

Sign In diff --git a/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.ts b/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.ts index 6db772c3..1d12e287 100644 --- a/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.ts +++ b/packages/modules/ui/src/lib/components/organisms/authn/sign-in/sign-in.component.ts @@ -1,7 +1,7 @@ import { Component } from '@angular/core'; import { FormBuilder, FormControl, Validators } from '@angular/forms'; -import { ROUTER } from '@console-core/config'; +import { REGEX, ROUTER } from '@console-core/config'; import { AuthnFacade } from '@console-core/state'; @Component({ @@ -12,7 +12,7 @@ export class RcSignInComponent { ROUTER = ROUTER; form = this.fb.group({ identifier: ['', [Validators.required]], - password: ['', [Validators.required]], + password: ['', [Validators.required, Validators.pattern(REGEX.password)]], }); isLoading$ = this.authnFacade.isLoading$; diff --git a/packages/modules/ui/src/lib/components/organisms/authn/sign-up/sign-up.component.html b/packages/modules/ui/src/lib/components/organisms/authn/sign-up/sign-up.component.html index 3a027a55..a2d9024d 100644 --- a/packages/modules/ui/src/lib/components/organisms/authn/sign-up/sign-up.component.html +++ b/packages/modules/ui/src/lib/components/organisms/authn/sign-up/sign-up.component.html @@ -114,13 +114,13 @@ This field is required. This field must: - have at least 6 characters in length- have at least 6 characters length - contain a lowercase letters- contain a lowercase letter - contain a uppercase letters- contain a uppercase letter - contain a number
Sign Up