1.0.0 • Published 6 years ago

@react-formilicious/validator-pwned v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Have I Been Pwned?

A field validator for https://github.com/PatrickSachs/react-formilicious/ based on the https://haveibeenpwned.com/ database.

See the storybook for documentation and all available components here: https://patricksachs.github.io/react-formilicious/validator-pwned/

import pwned from "@react-formilicious/validator-pwned";

<Form
  data={{
    password: "test123"
  }}
  elements={[
    {
      type: TextField,
      mode: "password",
      key: "password",
      name: "🔑 Password",
      placeholder: "🔑 Your super secret password here!",
      validator: pwned() // Simply add this as a validator, and you are good to go!
    }
  ]}/>

npm.io