mirror of
https://github.com/goharbor/harbor
synced 2025-04-18 06:24:00 +00:00
Fix Password Validation in UI (#21697)
fix(UI): password validation Signed-off-by: bupd <bupdprasanth@gmail.com>
This commit is contained in:
parent
1102585cce
commit
747aac043d
|
@ -264,10 +264,10 @@
|
|||
#inputSecret="ngModel"
|
||||
class="clr-input pwd-input"
|
||||
type="password"
|
||||
maxlength="30"
|
||||
maxlength="128"
|
||||
size="30"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="input_secret"
|
||||
[(ngModel)]="resetForms.input_secret"
|
||||
id="input-secret" />
|
||||
|
@ -309,7 +309,7 @@
|
|||
[type]="showConfirmSecret ? 'text' : 'password'"
|
||||
class="clr-input pwd-input"
|
||||
type="password"
|
||||
maxlength="30"
|
||||
maxlength="128"
|
||||
size="30"
|
||||
[(ngModel)]="resetForms.confirm_secret"
|
||||
name="confirm_secret"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
'PLACEHOLDER.NEW_PWD' | translate
|
||||
}}"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="newPassword"
|
||||
[(ngModel)]="password"
|
||||
#newPassInput="ngModel"
|
||||
|
@ -67,7 +67,7 @@
|
|||
'PLACEHOLDER.CONFIRM_PWD' | translate
|
||||
}}"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="reNewPassword"
|
||||
[(ngModel)]="confirmPwd"
|
||||
#reNewPassInput
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
name="oldPassword"
|
||||
[(ngModel)]="oldPwd"
|
||||
#oldPassInput="ngModel"
|
||||
maxlength="128"
|
||||
size="40" />
|
||||
<clr-icon
|
||||
*ngIf="!showOldPwd"
|
||||
|
@ -64,11 +65,12 @@
|
|||
[type]="showNewPwd ? 'text' : 'password'"
|
||||
id="newPassword"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="newPassword"
|
||||
[(ngModel)]="newPwd"
|
||||
#newPassInput="ngModel"
|
||||
size="40"
|
||||
maxlength="128"
|
||||
(input)="handleValidation('newPassword', false)"
|
||||
(blur)="handleValidation('newPassword', true)" />
|
||||
<clr-icon
|
||||
|
@ -106,11 +108,12 @@
|
|||
[type]="showReNewPwd ? 'text' : 'password'"
|
||||
id="reNewPassword"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="reNewPassword"
|
||||
[(ngModel)]="reNewPwd"
|
||||
#reNewPassInput="ngModel"
|
||||
size="40"
|
||||
maxlength="128"
|
||||
(input)="handleValidation('reNewPassword', false)"
|
||||
(blur)="handleValidation('reNewPassword', true)" />
|
||||
<clr-icon
|
||||
|
|
|
@ -101,11 +101,12 @@
|
|||
[type]="showNewPwd ? 'text' : 'password'"
|
||||
id="newPassword"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="newPassword"
|
||||
[(ngModel)]="newUser.password"
|
||||
#newPassInput="ngModel"
|
||||
size="30"
|
||||
maxLength="128"
|
||||
(input)="handleValidation('newPassword', false)"
|
||||
(blur)="handleValidation('newPassword', true)" />
|
||||
<clr-icon
|
||||
|
@ -143,11 +144,12 @@
|
|||
[type]="showConfirmPwd ? 'text' : 'password'"
|
||||
id="confirmPassword"
|
||||
required
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,128}$"
|
||||
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$"
|
||||
name="confirmPassword"
|
||||
[(ngModel)]="confirmedPwd"
|
||||
#confirmPassInput="ngModel"
|
||||
size="30"
|
||||
maxLength="128"
|
||||
(input)="handleValidation('confirmPassword', false)"
|
||||
(blur)="handleValidation('confirmPassword', true)" />
|
||||
<clr-icon
|
||||
|
|
Loading…
Reference in New Issue
Block a user