password 처리

This commit is contained in:
이담 정 2022-10-05 09:32:24 +00:00
parent f3bb24a4a8
commit 0bc0edb91b
2 changed files with 17 additions and 2 deletions

View File

@ -81,7 +81,14 @@
<!-- Subject -->
<mat-form-field>
<mat-label>비밀번호</mat-label>
<input matInput [formControlName]="'password'" />
<input
[type]="hide ? 'password' : 'text'"
matInput
[formControlName]="'password'"
/>
<mat-icon matSuffix (click)="hide = !hide">{{
hide ? "visibility off" : "visibility"
}}</mat-icon>
<mat-error *ngIf="composeForm.get('password')?.hasError('required')">
비밀번호는 필수 입력입니다.
</mat-error>
@ -93,7 +100,14 @@
<mat-form-field>
<mat-label>환전 비밀번호</mat-label>
<input matInput [formControlName]="'exchangePassword'" />
<input
[type]="hide ? 'password' : 'text'"
matInput
[formControlName]="'exchangePassword'"
/>
<mat-icon matSuffix (click)="hide = !hide">{{
hide ? "visibility_off" : "visibility"
}}</mat-icon>
<mat-error
*ngIf="composeForm.get('exchangePassword')?.hasError('required')"
>

View File

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