|
@@ -171,7 +171,6 @@ public class AuthServiceImpl implements AuthService {
|
|
user.setRootOrgName(rootOrg.getName());
|
|
user.setRootOrgName(rootOrg.getName());
|
|
user.setOrgId(student.getOrgId());
|
|
user.setOrgId(student.getOrgId());
|
|
user.setDisplayName(student.getName());
|
|
user.setDisplayName(student.getName());
|
|
- user.setClientIp(loginInfo.getClientIp());
|
|
|
|
|
|
|
|
List<Role> roleList = Lists.newArrayList();
|
|
List<Role> roleList = Lists.newArrayList();
|
|
Role role = new Role(8L, "STUDENT", "学生");
|
|
Role role = new Role(8L, "STUDENT", "学生");
|
|
@@ -179,6 +178,8 @@ public class AuthServiceImpl implements AuthService {
|
|
user.setRoleList(roleList);
|
|
user.setRoleList(roleList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ user.setClientIp(loginInfo.getClientIp());
|
|
|
|
+
|
|
Org org = null;
|
|
Org org = null;
|
|
if (null != user.getOrgId()) {
|
|
if (null != user.getOrgId()) {
|
|
org = orgRepo.findOne(user.getOrgId());
|
|
org = orgRepo.findOne(user.getOrgId());
|