Skip to content

Commit 5d696ae

Browse files
fix[frontend](federation): added password validation to have 8 characters min
1 parent 91e5d52 commit 5d696ae

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • frontend/src/app/shared/components/layout/header/shared/notification/utm-notification-user-setting/password

frontend/src/app/shared/components/layout/header/shared/notification/utm-notification-user-setting/password/password.component.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<label class="" for="newPassword">New password</label>
2727
<input #newPasswordInput="ngModel" [(ngModel)]="newPassword" class="form-control mb-2" id="newPassword"
2828
maxlength=50
29-
minlength=4
29+
minlength=8
3030
name="newPassword" required type="password">
3131
<div *ngIf="newPasswordInput.dirty && newPasswordInput.invalid" class="mb-2">
3232
<small *ngIf="newPasswordInput.errors.required"
@@ -35,7 +35,7 @@
3535
</small>
3636
<small *ngIf="newPasswordInput.errors.minlength"
3737
class="form-text text-danger">
38-
Your password is required to be at least 4 characters.
38+
Your password is required to be at least 8 characters.
3939
</small>
4040
<small *ngIf="newPasswordInput.errors.maxlength"
4141
class="form-text text-danger">
@@ -48,7 +48,8 @@
4848
<label class="" for="confirmPassword">New password confirmation</label>
4949
<input #confirmPasswordInput="ngModel" [(ngModel)]="confirmPassword" class="form-control" id="confirmPassword"
5050
maxlength=50
51-
minlength=4
51+
minlength=8
52+
required
5253
name="confirmPassword" required type="password">
5354
<div *ngIf="confirmPasswordInput.dirty && confirmPasswordInput.invalid">
5455
<small *ngIf="confirmPasswordInput.errors.required"
@@ -57,7 +58,7 @@
5758
</small>
5859
<small *ngIf="confirmPasswordInput.errors.minlength"
5960
class="form-text text-danger">
60-
Your confirmation password is required to be at least 4 characters.
61+
Your confirmation password is required to be at least 8 characters.
6162
</small>
6263
<small *ngIf="confirmPasswordInput.errors.maxlength"
6364
class="form-text text-danger">

0 commit comments

Comments
 (0)