feat: 打通 Jenkins 直构导入闭环
This commit is contained in:
@@ -92,6 +92,12 @@ function resolveSuperAdminInitialPassword() {
|
||||
return process.env.SUPER_ADMIN_INITIAL_PASSWORD;
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
throw new Error(
|
||||
'生产环境缺少 SUPER_ADMIN_INITIAL_PASSWORD,不能使用公开默认密码初始化超级管理员',
|
||||
);
|
||||
}
|
||||
|
||||
return SUPER_ADMIN_INITIAL_PASSWORD;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user