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