UserLogUtils.log(
username,
"passwordError",
"password error, retry limit exceed! password: {},max retry count {}",
password, maxRetryCount);
throw new UserPasswordRetryLimitExceedException(maxRetryCount);
}
}
if (!matches(user, password)) {
loginRecordCache.put(new Element(username, ++retryCount));