|
@@ -66,6 +66,8 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
trim(req);
|
|
trim(req);
|
|
Long rootOrgId = req.getRootOrgId();
|
|
Long rootOrgId = req.getRootOrgId();
|
|
String loginName = req.getLoginName();
|
|
String loginName = req.getLoginName();
|
|
|
|
+ String name = req.getName();
|
|
|
|
+
|
|
UserEntity userEntity = userRepo.findByRootOrgIdAndLoginName(rootOrgId, loginName);
|
|
UserEntity userEntity = userRepo.findByRootOrgIdAndLoginName(rootOrgId, loginName);
|
|
|
|
|
|
if (null != userEntity) {
|
|
if (null != userEntity) {
|
|
@@ -75,6 +77,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
userEntity = new UserEntity();
|
|
userEntity = new UserEntity();
|
|
userEntity.setLoginName(loginName);
|
|
userEntity.setLoginName(loginName);
|
|
userEntity.setRootOrgId(rootOrgId);
|
|
userEntity.setRootOrgId(rootOrgId);
|
|
|
|
+ userEntity.setName(name);
|
|
if (StringUtils.isBlank(req.getPassword())) {
|
|
if (StringUtils.isBlank(req.getPassword())) {
|
|
userEntity.setPassword(Consts.DEFAULT_PASSWORD);
|
|
userEntity.setPassword(Consts.DEFAULT_PASSWORD);
|
|
} else {
|
|
} else {
|