password 처리

This commit is contained in:
이담 정 2022-10-07 04:27:55 +00:00
parent 139cd5e001
commit 13d65a58bf
2 changed files with 11 additions and 9 deletions

View File

@ -82,12 +82,12 @@
<mat-form-field>
<mat-label>비밀번호</mat-label>
<input
[type]="hide1 ? 'password' : 'text'"
[type]="hideSigninPassword ? 'password' : 'text'"
matInput
[formControlName]="'password'"
/>
<mat-icon matSuffix (click)="hide1 = !hide1">{{
hide1 ? "visibility_off" : "visibility"
<mat-icon matSuffix (click)="hideSigninPassword = !hideSigninPassword">{{
hideSigninPassword ? "visibility_off" : "visibility"
}}</mat-icon>
<mat-error *ngIf="composeForm.get('password')?.hasError('required')">
비밀번호는 필수 입력입니다.
@ -101,13 +101,15 @@
<mat-form-field>
<mat-label>환전 비밀번호</mat-label>
<input
[type]="hide2 ? 'password' : 'text'"
[type]="hideExchangePassword ? 'password' : 'text'"
matInput
[formControlName]="'exchangePassword'"
/>
<mat-icon matSuffix (click)="hide2 = !hide2">{{
hide2 ? "visibility_off" : "visibility"
}}</mat-icon>
<mat-icon
matSuffix
(click)="hideExchangePassword = !hideExchangePassword"
>{{ hideExchangePassword ? "visibility_off" : "visibility" }}</mat-icon
>
<mat-error
*ngIf="composeForm.get('exchangePassword')?.hasError('required')"
>

View File

@ -47,8 +47,8 @@ export class RegistComposeComponent implements OnInit {
message: '등록이 성공하였습니다.',
};
hide1: boolean = true;
hide2: boolean = true;
hideSigninPassword: boolean = true;
hideExchangePassword: boolean = true;
showAlert: boolean = false;
isSendDisable = false;
/**