Fix the Change Password Functionality and add # as special character

This commit is contained in:
Vic Romero
2022-11-24 01:38:10 -06:00
parent 1f8e8f4ce6
commit b1beeed19c
2 changed files with 2 additions and 2 deletions
@@ -32,7 +32,7 @@ export class ChangePasswordDialogComponent implements OnInit {
/** Change Password form */
createChangePasswordForm() {
this.changePasswordForm = this.formBuilder.group({
'password': ['', [Validators.required, Validators.pattern('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&].{8,}$'), Validators.maxLength(50), Validators.minLength(8)]],
'password': ['', [Validators.required, Validators.pattern('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*[#$@$!%*?&])[A-Za-z\d#$@$!%*?&].{8,}$'), Validators.maxLength(50), Validators.minLength(8)]],
'repeatPassword': ['', [Validators.required, this.confirmPassword('password')]]
});
}