fix: 创建机构用户时未配置 user.default.password 导致 rawPassword cannot be null,补默认密码兜底
This commit is contained in:
@@ -22,9 +22,11 @@ public class UserUtils {
|
||||
|
||||
public static final String DEFAULT_AVATAR_KEY = "user.default.avatars";
|
||||
public static final String DEFAULT_ORG_USER_PASSWORD_KEY = "user.default.password";
|
||||
public static final String DEFAULT_ORG_USER_PASSWORD = "ou123567";
|
||||
|
||||
public static String getDefaultOrgUserPassword() {
|
||||
return EnvironmentUtils.getProperty(DEFAULT_ORG_USER_PASSWORD_KEY);
|
||||
String password = EnvironmentUtils.getProperty(DEFAULT_ORG_USER_PASSWORD_KEY);
|
||||
return StringUtils.isNotBlank(password) ? password : DEFAULT_ORG_USER_PASSWORD;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user