Skip to content
Snippets Groups Projects
Commit 72679db8 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

add sanity check for no auth modules being enabled in PLUGINS

parent c5bb0440
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@
require_once "sanity_config.php";
if (strpos(PLUGINS, "auth_") === FALSE) {
array_push($errors, "Please enable at least one authentication module via PLUGINS constant in config.php");
}
if (function_exists('posix_getuid') && posix_getuid() == 0) {
array_push($errors, "Please don't run this script as root.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment