jurassix / react-validation-mixin

Simple validation mixin (HoC) for React.
MIT License
283 stars 38 forks source link

Regex and password text being displayed in error message #69

Closed KishoreBarik closed 8 years ago

KishoreBarik commented 8 years ago

When we provide regex in strategy, the library displays the regex in error message. We can't imagine our users will be able to understand the regex nor they need to. From the demo page itself I got this message "Password" with value "gh" fails to match the required pattern: /[a-zA-Z0-9]{3,30}/ Also I feel we should not be displaying the entered password in error message.

jurassix commented 8 years ago

Take a look at the documentation on customized messages: https://jurassix.gitbooks.io/docs-react-validation-mixin/content/overview/custom.html