This commit is contained in:
Park Byung Eun 2022-09-14 04:39:13 +00:00
parent da5188c3bf
commit e104718a10
3 changed files with 15 additions and 9 deletions

View File

@ -81,12 +81,7 @@ export class RegistComposeComponent implements OnInit {
],
password: [
'beteran',
[
Validators.required,
Validators.pattern(
'^(?=.*[A-Za-z])(?=.*d)(?=.*[@$!%*#?&])[A-Za-zd@$!%*#?&]{8,20}$'
),
],
[Validators.required, Validators.pattern('^[A-Za-zd@$!%*#?&]{8,20}$')],
],
exchangePassword: [
'beteran',

View File

@ -81,7 +81,12 @@
[svgIcon]="'heroicons_solid:eye-off'"
></mat-icon>
</button>
<mat-error> 비밀번호를 입력하세요 </mat-error>
<mat-error *ngIf="signInForm.get('password')?.hasError('required')">
비밀번호를 입력하세요
</mat-error>
<mat-error *ngIf="signInForm.get('password')?.hasError('pattern')">
올바른 비밀번호를 입력하세요.
</mat-error>
</mat-form-field>
<div style="width: 320px; height: 88px">

View File

@ -49,9 +49,15 @@ export class AuthSignInComponent implements OnInit {
this.signInForm = this._formBuilder.group({
email: [
'administrator',
[Validators.required, Validators.pattern('^[a-zA-Z0-9]{6,12}$')],
[Validators.required, Validators.pattern('^[a-zA-Z0-9]{6,14}$')],
],
password: [
'beteran',
[
Validators.required,
// Validators.pattern('^[A-Za-z\\d@$!%*#?&]{8,20}$'),
],
],
password: ['beteran', Validators.required],
captchaSecurityCode: ['', Validators.required],
});