add "superUserLoginDisabled" parameter to allow disabling use of super user

p2p-v2
Moe 2022-02-12 14:15:56 -08:00
parent eb0e93e5d2
commit a03c158480
1 changed files with 1 additions and 1 deletions

View File

@ -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,{