react-password-strength icon indicating copy to clipboard operation
react-password-strength copied to clipboard

Ability to add custom rules

Open bogdancss opened this issue 5 years ago • 1 comments

We need our passwords to contain at least a non-alphanumerical character. Is there a way of passing that as an option to control when it becomes valid?

bogdancss avatar Nov 11 '19 14:11 bogdancss

Since such rules are really orthogonal to strength, I'd suggest instead a different feature that's sorely needed for many other reasons: pass in a custom input component. Then it can perform and display it's own validation independently (above) the strength meter. As well as render consistently with your other text fields. I'm preparing just such an enhancement to submit.

glennwidener avatar Jan 11 '21 20:01 glennwidener