1.0.3 • Published 2 years ago

password-validation-tag v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

password-tag

CDN

    https://unpkg.com/password-validation-tag@1.0.0/password-component-d.js

How to use password-valid-tag

  • Add above cdn link in the script tag, and place the script tag at the bottom of the body in your html page
  • Now you can use in your page
  • by default it takes 1 uppercase, 1 lowercase, 1 special, 1 number, mininimum 6 char and max 50
  • Simply styles can be added in component's js page as well as in different styles page, note reg_Password is the name of inputs id

Attributes

  • upperCase: U
  • lowerCase: L
  • special: S
  • numbers: N
  • min-length: Min
  • max-length: Max

Ex:

    <password-valid-tag U="2" L="3"> </password-valid-tag>  // this tag will take two uppercase and three lowercase characters

Note: In some case, in form while submitting add onSubmit attribute for calling isValidation(this) for confirming the validation, this case will arise when this tag will be added in html dynamically(from javascript code).

Note: Always add the cdn link below bottom of the body tag Screenshot from 2022-09-09 16-11-24

Output:

Screenshot from 2022-09-09 16-27-40

Issue: If writing logic for "New password" & "re-enter password", It is recommended to write "re-enter password" code by yourself. This issue will get resolve some day.

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago