WEB-562:fix(auth) align password validation with backend regex requirements (#2990)

fix the grammar
This commit is contained in:
Shubham Kumar
2026-01-12 12:50:08 -06:00
committed by GitHub
parent 1324a0fdcd
commit 43db2f2fba
4 changed files with 13 additions and 8 deletions
@@ -149,7 +149,7 @@ export class CreateUserComponent implements OnInit, AfterViewInit {
Validators.required,
Validators.minLength(12),
Validators.maxLength(50),
Validators.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)
Validators.pattern(/^(?!.*(.)\1)(?!.*\s)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^\w\s]).+$/)
]
],
repeatPassword: [