add "superUserLoginDisabled" parameter to allow disabling use of super user
parent
eb0e93e5d2
commit
a03c158480
|
|
@ -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,{
|
||||
|
|
|
|||
Loading…
Reference in New Issue