IDEMPIERE-3429 The method newInstance(String, String, List<PasswordData.Reference>) is undefined for the type PasswordData - integrate suggestion from dadan su at https://groups.google.com/d/msg/idempiere/Zzhf_K2YtDA/xvEC5sROCQAJ / confirmed by Gerald O'Sullivan
This commit is contained in:
parent
1f747fb0b3
commit
363bedd9f5
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue