Merge pull request #3198 from dataease/pr@dev@fix_login_limit_clear

fix(登录): 登录成功后登录失败次数未清零
This commit is contained in:
王嘉豪 2022-09-27 14:06:34 +08:00 committed by GitHub
commit cf0d947e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}