vt-middleware / passay

Password policy enforcement for Java.
http://www.passay.org
Other
275 stars 63 forks source link

Support multiple messages for single character based rules #109

Closed dfish3r closed 4 years ago

dfish3r commented 4 years ago

It would be useful to allow some rules to leverage more than a single message based on its failure. In the case of AllowedCharacterRule and IllegalCharacterRule it's natural to want a different message based on whitespace. It can also be hard to construct a single message for all character types.