mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-06-03 03:10:35 +00:00
修复密码输入错误次数变量
This commit is contained in:
parent
8fdb3c4d14
commit
4d21c11acd
@ -60,7 +60,7 @@ public class SysPasswordService
|
||||
if (!matches(user, password))
|
||||
{
|
||||
retryCount = retryCount + 1;
|
||||
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", maxRetryCount));
|
||||
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", retryCount));
|
||||
redisService.setCacheObject(getCacheKey(username), retryCount, lockTime, TimeUnit.MINUTES);
|
||||
throw new ServiceException("用户不存在/密码错误");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user