react-password-strength-bar
react-password-strength-bar copied to clipboard
custom score
How we can set our logic to generate custom score?
Seems like userInputs allows a bit of customizability. For example, to prevent the user from choosing a password that matches their username, you could pass their username or any other forbiddenWords to the userInputs:
<PasswordStrengthBar password={password} userInputs={[username, ...forbiddenWords]} />
However, this is not a general solution to custom scoring.