IDEMPIERE-5610: Improve layout of Password Validator translations (#1702)
https://idempiere.atlassian.net/browse/IDEMPIERE-5610
This commit is contained in:
parent
317dc9b4ea
commit
075c41c63f
|
@ -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_";
|
private static final String passay_prefix = "PASSAY_";
|
||||||
|
|
||||||
|
@ -219,11 +219,9 @@ public class MPasswordRule extends X_AD_PasswordRule {
|
||||||
RuleResult result = validator.validate(passwordData);
|
RuleResult result = validator.validate(passwordData);
|
||||||
if (!result.isValid()) {
|
if (!result.isValid()) {
|
||||||
StringBuilder error = new StringBuilder(Msg.getMsg(getCtx(), "PasswordErrors"));
|
StringBuilder error = new StringBuilder(Msg.getMsg(getCtx(), "PasswordErrors"));
|
||||||
error.append(": [");
|
|
||||||
for(RuleResultDetail detail : result.getDetails()){
|
for(RuleResultDetail detail : result.getDetails()){
|
||||||
error.append(" ").append(resolveMessage(detail));
|
error.append("\n- ").append(resolveMessage(detail));
|
||||||
}
|
}
|
||||||
error.append(" ]");
|
|
||||||
throw new AdempiereException(error.toString());
|
throw new AdempiereException(error.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue