Browse Source

fix: 尝试增加登录日志

dev
pref_mail@163.com 6 months ago
parent
commit
9414dc9496
  1. 6
      blade-auth/src/main/java/org/springblade/auth/service/BladeUserDetailsServiceImpl.java

6
blade-auth/src/main/java/org/springblade/auth/service/BladeUserDetailsServiceImpl.java

@ -179,9 +179,9 @@ public class BladeUserDetailsServiceImpl implements UserDetailsService {
// 成功则清除登录错误次数
delFailCount(tenantId, username);
LogUsual logUsual = new LogUsual();
logUsual.setTenantId(tenantId);
logClient.saveUsualLog(logUsual);// 记录登录日志
// LogUsual logUsual = new LogUsual();
// logUsual.setTenantId(tenantId);
// logClient.saveUsualLog(logUsual);// 记录登录日志
BladeUserDetails bladeUserDetails = new BladeUserDetails(user.getId(),
user.getTenantId(), StringPool.EMPTY, user.getName(), user.getRealName(), user.getDeptId(), user.getPostId(), user.getRoleId(), Func.join(userInfo.getRoles()), Func.toStr(user.getAvatar(), TokenUtil.DEFAULT_AVATAR),
username, AuthConstant.ENCRYPT + user.getPassword(), userInfo.getDetail(), true, true, true, true,

Loading…
Cancel
Save