|
|
|
@ -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, |
|
|
|
|