|
@@ -91,11 +91,11 @@
|
91
|
91
|
</ng-template>
|
92
|
92
|
<!-- 修改密码 -->
|
93
|
93
|
<nz-modal [(nzVisible)]="isPwdVisible" nzTitle="修改密码" (nzOnCancel)="pwdHandleCancel()" (nzOnOk)="pwdHandleOk()"
|
94
|
|
- [nzOkLoading]="pwdIsOkLoading">
|
|
94
|
+ [nzOkLoading]="pwdIsOkLoading" (nzAfterOpen)="pwdAfterOpen()">
|
95
|
95
|
<div>
|
96
|
96
|
<label>原始密码:
|
97
|
97
|
<nz-input-group [nzSuffix]="suffixTemplate">
|
98
|
|
- <input maxlength="16" minlength="6" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="原始密码"
|
|
98
|
+ <input minlength="9" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="原始密码"
|
99
|
99
|
[(ngModel)]="upModalData.pwdOld" />
|
100
|
100
|
</nz-input-group>
|
101
|
101
|
<ng-template #suffixTemplate>
|
|
@@ -104,24 +104,23 @@
|
104
|
104
|
</ng-template>
|
105
|
105
|
</label>
|
106
|
106
|
<label>新密码:
|
107
|
|
- <!-- <div style="display: flex;"> -->
|
|
107
|
+ <div style="display: flex;">
|
108
|
108
|
<nz-input-group [nzSuffix]="suffixTemplate">
|
109
|
|
- <input maxlength="16" minlength="6" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="新密码"
|
110
|
|
- [(ngModel)]="upModalData.newPwd" />
|
|
109
|
+ <input minlength="9" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="新密码"
|
|
110
|
+ [(ngModel)]="upModalData.newPwd" (ngModelChange)="blurNewPwd()" />
|
111
|
111
|
</nz-input-group>
|
112
|
112
|
<ng-template #suffixTemplate>
|
113
|
|
- <i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
114
|
|
- (click)="passwordVisible = !passwordVisible"></i>
|
|
113
|
+ <i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'" (click)="passwordVisible = !passwordVisible"></i>
|
115
|
114
|
</ng-template>
|
116
|
|
- <!-- <div class="red" style="display: flex;justify-content: center;align-items: center;padding-left: 5px;">弱</div>
|
117
|
|
- <div style="display: flex;justify-content: center;align-items: center;padding-left: 5px;">中</div>
|
118
|
|
- <div class="green" style="display: flex;justify-content: center;align-items: center;padding-left: 5px;">强</div> -->
|
119
|
|
- <!-- </div> -->
|
|
115
|
+ <div class="red" style="display: flex;justify-content: center;align-items: center;padding-left: 5px;" *ngIf="enoughRegFlag">弱</div>
|
|
116
|
+ <div style="display: flex;justify-content: center;align-items: center;padding-left: 5px;" *ngIf="mediumRegFlag">中</div>
|
|
117
|
+ <div class="green" style="display: flex;justify-content: center;align-items: center;padding-left: 5px;" *ngIf="strongRegFlag">强</div>
|
|
118
|
+ </div>
|
120
|
119
|
</label>
|
121
|
|
- <!-- <div class="red">强密码需包含大小写字母、数字、特殊字符,长度必须超过8个字符</div> -->
|
|
120
|
+ <div class="red">强密码需包含大小写字母、数字、特殊字符,长度至少9个字符</div>
|
122
|
121
|
<label>确认新密码:
|
123
|
122
|
<nz-input-group [nzSuffix]="suffixTemplate">
|
124
|
|
- <input maxlength="16" minlength="6" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="确认新密码"
|
|
123
|
+ <input minlength="9" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="确认新密码"
|
125
|
124
|
[(ngModel)]="upModalData.newPwd2" />
|
126
|
125
|
</nz-input-group>
|
127
|
126
|
<ng-template #suffixTemplate>
|