mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-18 07:32:14 +11:00
un fucked some things
This commit is contained in:
parent
72dc78eb7c
commit
9044469aa4
1 changed files with 35 additions and 32 deletions
7
index.js
7
index.js
|
|
@ -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')
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue