Skip to content

Commit

Permalink
Merge pull request #253 from aniri/bugfix/validate_pass_length
Browse files Browse the repository at this point in the history
update max password length
  • Loading branch information
aniri committed 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

1 comment on commit caa972a

@vercel
Copy link

@vercel vercel bot commented on caa972a Sep 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.