simple-password-validator
Simple password validator module to AngularJs.
We have 2 directives in this package:
- app-password-match
- app-password-validator
How to use
Import the simple-password-validator module:
; angular;
Use in the inputs tags:
app-password-match
This directive can be aplied to the match password. It receives a parameter called password
to verify if it matches to the ng-model
.
app-password-validator
The default validator regex is able to validate the fallowing rules:
- 1 uppercase character
- 1 lowercase character
- 1 digit
It's possible to pass the password-regex
param, in order to specify a new regex rule to the password validar.