|
|
@@ -87,6 +87,7 @@ public class HnqzUserAuthenticationConverter implements UserAuthenticationConver
|
|
|
String username = MapUtil.getStr(map, SecurityConstants.DETAILS_USERNAME);
|
|
|
Integer id = MapUtil.getInt(map, SecurityConstants.DETAILS_USER_ID);
|
|
|
Integer deptId = MapUtil.getInt(map, SecurityConstants.DETAILS_DEPT_ID);
|
|
|
+ String deptName = MapUtil.getStr(map, SecurityConstants.DETAILS_DEPT_NAME);
|
|
|
Integer tenantId = MapUtil.getInt(map, SecurityConstants.DETAILS_TENANT_ID);
|
|
|
String phone = MapUtil.getStr(map, SecurityConstants.DETAILS_PHONE);
|
|
|
String avatar = MapUtil.getStr(map, SecurityConstants.DETAILS_AVATAR);
|
|
|
@@ -102,7 +103,7 @@ public class HnqzUserAuthenticationConverter implements UserAuthenticationConver
|
|
|
}
|
|
|
|
|
|
HnqzUser user = new HnqzUser(id, deptId, phone, avatar, tenantId, username, N_A, true, true, true, true,
|
|
|
- authorities, platId, drugEntId, null, latestChangePwdTime, realname);
|
|
|
+ authorities, platId, drugEntId, null, latestChangePwdTime, realname, deptName);
|
|
|
return new UsernamePasswordAuthenticationToken(user, N_A, authorities);
|
|
|
}
|
|
|
return null;
|