From a03c158480c0dde26aa66a41a5970a10d5f08447 Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 12 Feb 2022 14:15:56 -0800 Subject: [PATCH] add "superUserLoginDisabled" parameter to allow disabling use of super user --- libs/webServerPaths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/webServerPaths.js b/libs/webServerPaths.js index 1fb2dba3..fba78ba7 100644 --- a/libs/webServerPaths.js +++ b/libs/webServerPaths.js @@ -458,7 +458,7 @@ module.exports = function(s,config,lang,app,io){ failedAuthentication(req.body.function,req.body.mail) } } - if(req.body.function === 'super'){ + if(req.body.function === 'super' && !config.superUserLoginDisabled){ const superLoginResponse = await superLogin(req.body.mail,req.body.pass); if(superLoginResponse.ok){ renderPage(config.renderPaths.super,{