hg merge release-4.1 (merge release4.1 into development)

This commit is contained in:
Carlos Ruiz 2017-07-21 20:18:53 +02:00
commit 1793361fcf
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ public class MPasswordRule extends X_AD_PasswordRule {
// validator all rule
if (!ruleList.isEmpty()) {
PasswordValidator validator = new PasswordValidator(getCustomResolver(), ruleList);
PasswordData passwordData = PasswordData.newInstance(newPassword, username, historyData);
PasswordData passwordData = new PasswordData(username, newPassword);
passwordData.setPasswordReferences(historyData);
RuleResult result = validator.validate(passwordData);
if (!result.isValid()) {
StringBuilder error = new StringBuilder(Msg.getMsg(getCtx(), "PasswordErrors"));