fix(登录): 登录成功后登录失败次数未清零

This commit is contained in:
fit2cloud-chenyw 2022-09-27 12:52:08 +08:00
parent 2c42e436b8
commit 2ad9c9ca8a

View File

@ -155,6 +155,7 @@ public class AuthServer implements AuthApi {
result.put("token", token);
ServletUtils.setToken(token);
DeLogUtils.save(SysLogConstants.OPERATE_TYPE.LOGIN, SysLogConstants.SOURCE_TYPE.USER, user.getUserId(), null, null, null);
authUserService.unlockAccount(username, ObjectUtils.isEmpty(loginType) ? 0 : loginType);
authUserService.clearCache(user.getUserId());
return result;
}