Skip to content

Commit

Permalink
Merge pull request code4romania#253 from aniri/bugfix/validate_pass_l…
Browse files Browse the repository at this point in the history
…ength

update max password length
  • Loading branch information
aniri authored Sep 27, 2020
2 parents 02b56a6 + 5f08465 commit caa972a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h4 class="modal-title pull-left">{{'ENTER_NEW_PASSWORD' | translate}} {{observe
</button>
</div>
<div class="modal-body">
<input type="text" name="password" placeholder="pin" [(ngModel)]="newPassword" #pin="ngModel" maxlength="4"
<input type="text" name="password" placeholder="pin" [(ngModel)]="newPassword" #pin="ngModel" maxlength="6"
minlength="4">
<p>&nbsp;</p>
<button type="button" class="btn btn-primary" (click)="resetPassword()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class ObserversComponent implements OnInit, OnDestroy {
}

isPasswordValid(): boolean {
return this.newPassword && this.newPassword.length === 4;
return this.newPassword && (this.newPassword.length === 4 || this.newPassword.length === 6);
}

resetPassword() {
Expand Down

0 comments on commit caa972a

Please sign in to comment.