@react-formilicious/validator-pwned

1.0.0Β β€’Β PublicΒ β€’Β Published

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!
    }
  ]}/>

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @react-formilicious/validator-pwned

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.48 kB

    Total Files

    6

    Last publish

    Collaborators

    • patrick.sachs