Browse Source

解决创建用户,租户为空问题

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
fa9144ff0f
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/UserServiceImpl.java
  2. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/add/AddUserService.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/UserServiceImpl.java View File

@@ -90,7 +90,7 @@ public class UserServiceImpl implements IUserService {
* @return
*/
@Override
public JsonResult add(@RequestBody User user) {
public JsonResult add(User user) {
return addUserService.add(user);
}


+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/add/AddUserService.java View File

@@ -56,6 +56,7 @@ public class AddUserService {
log.info("添加用户业务接口:校验失败:{}", result.getMsg());
return result;
}
user.setTenantId(tenantId);
// 添加oidc
result = oidcService.addUser(user, SystemConstant.INIT_PASSWORD, null);
if (0 != result.getCode()) {

Loading…
Cancel
Save