|
@@ -943,7 +943,7 @@ module.exports = (crowi) => {
|
|
|
const formValue = req.body[key];
|
|
const formValue = req.body[key];
|
|
|
if (configManager.getConfigFromEnvVars('crowi', configKey) === null && formValue == null) {
|
|
if (configManager.getConfigFromEnvVars('crowi', configKey) === null && formValue == null) {
|
|
|
const formItemName = t(`security_setting.form_item_name.${key}`);
|
|
const formItemName = t(`security_setting.form_item_name.${key}`);
|
|
|
- invalidValues.push(t('input_validation.message.required', formItemName));
|
|
|
|
|
|
|
+ invalidValues.push(t('input_validation.message.required', { param: formItemName }));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (invalidValues.length !== 0) {
|
|
if (invalidValues.length !== 0) {
|
|
@@ -958,7 +958,7 @@ module.exports = (crowi) => {
|
|
|
crowi.passportService.parseABLCRule(rule);
|
|
crowi.passportService.parseABLCRule(rule);
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
- return res.apiv3Err(t('input_validation.message.invalid_syntax', t('security_settings.form_item_name.ABLCRule')), 400);
|
|
|
|
|
|
|
+ return res.apiv3Err(t('input_validation.message.invalid_syntax', { syntax: t('security_settings.form_item_name.ABLCRule') }), 400);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|