IDEMPIERE-5610: Improve layout of Password Validator translations (#1702)

https://idempiere.atlassian.net/browse/IDEMPIERE-5610
This commit is contained in:
Nicolas Micoud 2023-03-15 12:00:38 +01:00 committed by GitHub
parent 317dc9b4ea
commit 075c41c63f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -64,7 +64,7 @@ public class MPasswordRule extends X_AD_PasswordRule {
/**
*
*/
private static final long serialVersionUID = 5454698615095632059L;
private static final long serialVersionUID = 6778305268023192107L;
private static final String passay_prefix = "PASSAY_";
@ -219,11 +219,9 @@ public class MPasswordRule extends X_AD_PasswordRule {
RuleResult result = validator.validate(passwordData);
if (!result.isValid()) {
StringBuilder error = new StringBuilder(Msg.getMsg(getCtx(), "PasswordErrors"));
error.append(": [");
for(RuleResultDetail detail : result.getDetails()){
error.append(" ").append(resolveMessage(detail));
error.append("\n- ").append(resolveMessage(detail));
}
error.append(" ]");
throw new AdempiereException(error.toString());
}
}