Przeglądaj źródła

创建系统初始化用户,使用默认密码

tags/v1.0.0^2
wanjing 1 rok temu
rodzic
commit
abb47ce59e
1 zmienionych plików z 1 dodań i 5 usunięć
  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 Wyświetl plik

@@ -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);

Ładowanie…
Anuluj
Zapisz