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: [ password: [
'beteran', 'beteran',
[ [Validators.required, Validators.pattern('^[A-Za-zd@$!%*#?&]{8,20}$')],
Validators.required,
Validators.pattern(
'^(?=.*[A-Za-z])(?=.*d)(?=.*[@$!%*#?&])[A-Za-zd@$!%*#?&]{8,20}$'
),
],
], ],
exchangePassword: [ exchangePassword: [
'beteran', 'beteran',

View File

@ -81,7 +81,12 @@
[svgIcon]="'heroicons_solid:eye-off'" [svgIcon]="'heroicons_solid:eye-off'"
></mat-icon> ></mat-icon>
</button> </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> </mat-form-field>
<div style="width: 320px; height: 88px"> <div style="width: 320px; height: 88px">

View File

@ -49,9 +49,15 @@ export class AuthSignInComponent implements OnInit {
this.signInForm = this._formBuilder.group({ this.signInForm = this._formBuilder.group({
email: [ email: [
'administrator', '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], captchaSecurityCode: ['', Validators.required],
}); });