|
|
@@ -60,7 +60,7 @@ public class SysPasswordService
|
|
60
|
60
|
if (!matches(user, password))
|
|
61
|
61
|
{
|
|
62
|
62
|
retryCount = retryCount + 1;
|
|
63
|
|
- recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", maxRetryCount));
|
|
|
63
|
+ recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", retryCount));
|
|
64
|
64
|
redisService.setCacheObject(getCacheKey(username), retryCount, lockTime, TimeUnit.MINUTES);
|
|
65
|
65
|
throw new ServiceException("用户不存在/密码错误");
|
|
66
|
66
|
}
|