회원수정 passowrd 처리

This commit is contained in:
이담 정 2022-11-28 00:46:08 +00:00
parent 13d65a58bf
commit e3b656e8a9
2 changed files with 34 additions and 3 deletions

View File

@ -204,17 +204,33 @@
<mat-label>비밀번호</mat-label> <mat-label>비밀번호</mat-label>
<input <input
id="signinPw" id="signinPw"
[type]="hideSigninPassword ? 'password' : 'text'"
matInput matInput
[formControlName]="'signinPw'" [formControlName]="'signinPw'"
/> />
<mat-icon
matSuffix
(click)="hideSigninPassword = !hideSigninPassword"
>{{
hideSigninPassword ? "visibility_off" : "visibility"
}}</mat-icon
>
</mat-form-field> </mat-form-field>
<mat-form-field class="w-1/3 pr-2"> <mat-form-field class="w-1/3 pr-2">
<mat-label>비밀번호 확인</mat-label> <mat-label>비밀번호 확인</mat-label>
<input <input
id="signinPwConfirm" id="signinPwConfirm"
[type]="hideSigninPassword ? 'password' : 'text'"
matInput matInput
[formControlName]="'signinPwConfirm'" [formControlName]="'signinPwConfirm'"
/> />
<mat-icon
matSuffix
(click)="hideSigninPassword = !hideSigninPassword"
>{{
hideSigninPassword ? "visibility_off" : "visibility"
}}</mat-icon
>
</mat-form-field> </mat-form-field>
<div class="w-1/3 pr-2 mt-8"> <div class="w-1/3 pr-2 mt-8">
<button <button
@ -378,17 +394,31 @@
<mat-label>환전 비밀번호</mat-label> <mat-label>환전 비밀번호</mat-label>
<input <input
id="exchangePw" id="exchangePw"
[type]="hideExchangePassword ? 'password' : 'text'"
matInput matInput
[formControlName]="'exchangePw'" [formControlName]="'exchangePw'"
/> /><mat-icon
matSuffix
(click)="hideExchangePassword = !hideExchangePassword"
>{{
hideExchangePassword ? "visibility_off" : "visibility"
}}</mat-icon
>
</mat-form-field> </mat-form-field>
<mat-form-field class="w-1/3 pr-2"> <mat-form-field class="w-1/3 pr-2">
<mat-label>환전 비밀번호 확인</mat-label> <mat-label>환전 비밀번호 확인</mat-label>
<input <input
id="exchangePwConfirm" id="exchangePwConfirm"
[type]="hideExchangePassword ? 'password' : 'text'"
matInput matInput
[formControlName]="'exchangePwConfirm'" [formControlName]="'exchangePwConfirm'"
/> /><mat-icon
matSuffix
(click)="hideExchangePassword = !hideExchangePassword"
>{{
hideExchangePassword ? "visibility_off" : "visibility"
}}</mat-icon
>
</mat-form-field> </mat-form-field>
<div class="w-1/3 pr-2 mt-8"> <div class="w-1/3 pr-2 mt-8">
<button <button

View File

@ -154,7 +154,8 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
type: 'success', type: 'success',
message: '비밀번호가 수정 되었습니다.', message: '비밀번호가 수정 되었습니다.',
}; };
hideSigninPassword: boolean = true;
hideExchangePassword: boolean = true;
changePasswordResultShowAlert: boolean = false; changePasswordResultShowAlert: boolean = false;
alertTitle = '알림'; alertTitle = '알림';
alertChangePasswordMessage = '비밀번호를 변경 하시겠습니까?'; alertChangePasswordMessage = '비밀번호를 변경 하시겠습니까?';