Browse Source

Merge branch 'develop' of http://192.168.11.14:51037/gitadmin/tuoheng_freeway into feature_v1.0

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
cecd0374f2
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/AddOidcUserService.java

+ 1
- 5
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/AddOidcUserService.java View File

@@ -67,11 +67,7 @@ public class AddOidcUserService {
private OidcCreateUserRequest buildOidcCreateUserRequest(User user, Tenant tenant) {
OidcCreateUserRequest oidcCreateUserRequest = new OidcCreateUserRequest();
oidcCreateUserRequest.setUsername(user.getUsername());
if (StringUtils.isNotEmpty(user.getPassword())) {
oidcCreateUserRequest.setPassword(user.getPassword());
} else {
oidcCreateUserRequest.setPassword(SystemConstant.INIT_PASSWORD);
}
oidcCreateUserRequest.setPassword(SystemConstant.INIT_PASSWORD);
if (ObjectUtil.isNull(tenant)) {
// 普通用户新增
oidcCreateUserRequest.setTenantFlag(0);

Loading…
Cancel
Save