1.0.2 • Published 1 year ago

@christof-fritz/ngx-confirm-password-validator v1.0.2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

NgxConfirmPasswordValidator

A validator to check if two input fields in a template driven form are equal.

Adds the validation errors to the two inputs instead of the form.

Demo

<form otherPasswordControlName="password_repeat"
      passwordControlName="password"
      confirmPasswordValidator>
  <input [maxlength]="80"
         [minlength]="6"
         [name]="'username'"
         [ngModel]="username"
         disabled>

  <input [(ngModel)]="password"
         name="password"
         required
         type="password">

  <input [(ngModel)]="password_repeat"
         name="password_repeat"
         required
         type="password">
</form>
1.0.2

1 year ago

1.0.1

1 year ago