Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Regex and password text being displayed in error message #69

Closed
KishoreBarik opened this issue May 23, 2016 · 1 comment
Closed

Regex and password text being displayed in error message #69

KishoreBarik opened this issue May 23, 2016 · 1 comment

Comments

@KishoreBarik
Copy link

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants