|
|
|
@ -50,12 +50,12 @@ public class SysPasswordService |
|
|
|
retryCount = 0; |
|
|
|
} |
|
|
|
|
|
|
|
if (retryCount >= Integer.valueOf(maxRetryCount).intValue()) |
|
|
|
{ |
|
|
|
String errMsg = String.format("密码输入错误%s次,帐户锁定%s分钟", maxRetryCount, lockTime); |
|
|
|
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL,errMsg); |
|
|
|
throw new ServiceException(errMsg); |
|
|
|
} |
|
|
|
// if (retryCount >= Integer.valueOf(maxRetryCount).intValue()) |
|
|
|
// { |
|
|
|
// String errMsg = String.format("密码输入错误%s次,帐户锁定%s分钟", maxRetryCount, lockTime); |
|
|
|
// recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL,errMsg); |
|
|
|
// throw new ServiceException(errMsg); |
|
|
|
// } |
|
|
|
|
|
|
|
if (!matches(user, password)) |
|
|
|
{ |
|
|
|
|