@react-formilicious/validator-pwned
v1.0.0
Published
Have I Been Pwned? for react-formilicious 👊
Downloads
1
Readme
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!
}
]}/>