Closed GoogleCodeExporter closed 8 years ago
I just took a look at unit tests and it seems that RegexRule is negative
validation by design(fails when password matches pattern), not positive as I
expected (succeeds when password matches pattern). This should be clearly
stated in documentation. Additionally I would expect to have 2 versions of
RegexRule class - positive and negative.
Original comment by gwozd...@gmail.com
on 17 Feb 2014 at 11:33
> I just took a look at unit tests and it seems that RegexRule is negative
validation by design(fails when password matches pattern)
That's correct. The rule fails for passwords matching the regex.
Original comment by dfis...@gmail.com
on 17 Feb 2014 at 4:10
It would be a trivial change to add a property to RegexRule to control this
behavior.
Perhaps RegexRule#succeedOnMatch or something like it.
Original comment by dfis...@gmail.com
on 17 Feb 2014 at 4:40
RegexRule renamed to IllegalRegexRule.
Added AllowedRegexRule to provide positive matching.
https://github.com/vt-middleware/passay/issues/10
Note that vt-password is in maintenance, and only receiving security patches.
Original comment by dfis...@gmail.com
on 10 Oct 2014 at 2:05
Original issue reported on code.google.com by
gwozd...@gmail.com
on 17 Feb 2014 at 3:42