|
@@ -147,7 +147,7 @@ public class InterlockUserServiceImpl extends ServiceImpl<InterlockUserMapper, I
|
|
int count = 0;
|
|
int count = 0;
|
|
try {
|
|
try {
|
|
String password = "";
|
|
String password = "";
|
|
- if ("1".equals(interlockUserAdd.getInterlockUserType()) && ObjectUtil.isNotNull(interlockUserAdd.getPassword())){
|
|
|
|
|
|
+ if ("normal".equals(interlockUserAdd.getInterlockUserType()) && ObjectUtil.isNotNull(interlockUserAdd.getPassword())){
|
|
password = interlockUserAdd.getPassword();
|
|
password = interlockUserAdd.getPassword();
|
|
}
|
|
}
|
|
restClientService.addSSOUser(interlockUserAdd.getUsername(),password);
|
|
restClientService.addSSOUser(interlockUserAdd.getUsername(),password);
|
|
@@ -210,7 +210,7 @@ public class InterlockUserServiceImpl extends ServiceImpl<InterlockUserMapper, I
|
|
//普通用户
|
|
//普通用户
|
|
if(interlockUserAdd.getInterlockUserType().equals("normal")){
|
|
if(interlockUserAdd.getInterlockUserType().equals("normal")){
|
|
//sso账户不存在
|
|
//sso账户不存在
|
|
- if(!(interlockUserAdd.getIsExistSSO())){
|
|
|
|
|
|
+ if(((interlockUserAdd.getIsExistSSO()) != null) && (!(interlockUserAdd.getIsExistSSO()))){
|
|
JSONObject addJSONObject = toAddJSONObject(interlockUserAdd.getUsername(), interlockUserAdd.getPassword());
|
|
JSONObject addJSONObject = toAddJSONObject(interlockUserAdd.getUsername(), interlockUserAdd.getPassword());
|
|
return addUser(addJSONObject);
|
|
return addUser(addJSONObject);
|
|
}
|
|
}
|