Always return only one result for HistoryRule #68
If the password history contains multiple entries that the new password matches to, the result contains two identical result details.
In normal situtations (when using password history rule from the beginning) this wouldn't happen. But in case if a password history check is introduced later on, a result could appear multiple times, as many times as the new password matched the history entries.
This change should make the result a bit more opaque.
Thank you for making this library, it's really useful
We have a convention of using reportAllFailures controlling whether a rule only reports the first failure or all failures. This PR adds that property to both the HistoryRule and SourceRule. Note that this changes the default behavior, but this is probably the desired behavior. See PR #68.