|
|
|
|
|
|
|
|
private OidcCreateUserRequest buildOidcCreateUserRequest(User user, Tenant tenant) { |
|
|
private OidcCreateUserRequest buildOidcCreateUserRequest(User user, Tenant tenant) { |
|
|
OidcCreateUserRequest oidcCreateUserRequest = new OidcCreateUserRequest(); |
|
|
OidcCreateUserRequest oidcCreateUserRequest = new OidcCreateUserRequest(); |
|
|
oidcCreateUserRequest.setUsername(user.getUsername()); |
|
|
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)) { |
|
|
if (ObjectUtil.isNull(tenant)) { |
|
|
// 普通用户新增 |
|
|
// 普通用户新增 |
|
|
oidcCreateUserRequest.setTenantFlag(0); |
|
|
oidcCreateUserRequest.setTenantFlag(0); |