Skip to content

Commit b610058

Browse files
fixed error message for new password equal old password
1 parent d050f2c commit b610058

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

knowage-core/src/main/java/it/eng/spagobi/commons/validation/PasswordChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ public boolean isValid(final SbiUser tmpUser, String oldPwd, boolean isEncrypted
200200

201201
if (oldPwd != null && oldPwd.equalsIgnoreCase(newPwd)) {
202202
logger.debug("The password's doesn't be equal the lastest.");
203-
throw new EMFUserError(EMFErrorSeverity.ERROR, 14007, Collections.emptyList(),
204-
Collections.emptyMap());
203+
throw new Exception("The new password cannot be the same as the previous one.");
204+
205205
}
206206

207207
}

0 commit comments

Comments
 (0)