summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/OC_Util.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 9110678537f..5441d3a2864 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -969,6 +969,13 @@ class OC_Util {
];
}
+ if ($config->getValue('secret', '') === '' && !\OC::$CLI) {
+ $errors[] = [
+ 'error' => $l->t('The required \'secret\' config variable is not configued in the config.php file.'),
+ 'hint' => $l->t('Please ask your server administrator to check the Nextcloud configuration.')
+ ];
+ }
+
$errors = array_merge($errors, self::checkDatabaseVersion());
// Cache the result of this function