Commit 4c309cd1 authored by hkl's avatar hkl

feat:1.统一身份认证改造

parent 0c90ca6d
......@@ -77,6 +77,7 @@ public class IamServiceImpl implements IamService {
currentUser.setUsername(loginInfo.getUserCode());
currentUser.setRealname(loginInfo.getUserName());
currentUser.setPassword("123456");
currentUser.setWorkNo(loginInfo.getUserCode());
currentUser.setDelFlag(0);
currentUser.setLoginTenantId(0);
currentUser.setStatus(CommonConstant.USER_UNFREEZE);
......@@ -104,7 +105,7 @@ public class IamServiceImpl implements IamService {
// 记录登录日志
LoginUser loginUser = new LoginUser();
BeanUtils.copyProperties(currentUser, loginUser);
baseCommonService.addLog("用户名: " + currentUser.getUsername() + ",登录成功!", CommonConstant.LOG_TYPE_1, null, loginUser);
baseCommonService.addLog("用户名: " + currentUser.getRealname() + ",登录成功!", CommonConstant.LOG_TYPE_1, null, loginUser);
result.setToken(token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment