审计日志相关代码提交
This commit is contained in:
@@ -89,6 +89,13 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
||||
}
|
||||
//超级管理员则不做任何逻辑判断
|
||||
if (user.getType() == 0) {
|
||||
//更新用户登录时间,以及错误登录记录的信息归零。
|
||||
user.setState(UserState.ENABLE);
|
||||
user.setLoginErrorTimes(0);
|
||||
user.setLoginTime(LocalDateTime.now());
|
||||
user.setFirstErrorTime(null);
|
||||
user.setLockTime(null);
|
||||
this.baseMapper.updateById(user);
|
||||
return;
|
||||
}
|
||||
//根据用户类型获取对应用户策略
|
||||
|
||||
@@ -51,6 +51,6 @@ mybatis-plus:
|
||||
|
||||
mqtt:
|
||||
uri: tcp://@middle.server.url@:1883
|
||||
client-id: @artifactId@
|
||||
client-id: @artifactId@${random.value}
|
||||
username: t_user
|
||||
password: njcnpqs
|
||||
|
||||
Reference in New Issue
Block a user