un fucked some things

This commit is contained in:
Expand-sys 2021-04-22 18:23:59 +10:00
parent 72dc78eb7c
commit 9044469aa4

View file

@ -324,9 +324,9 @@ app.post('/login', async function(req, res){
} catch(err){
console.log(err)
}
if(!adminTest.body.value){
if(adminTest.body.value == undefined){
res.redirect('/')
}
}else{
req.session.admin = adminTest.body.value
req.session.adminp = password
let verified
@ -362,6 +362,9 @@ app.post('/login', async function(req, res){
}
}
}
//res.redirect('/login')
})