SQL thingy fix, oops

This commit is contained in:
mrfry 2020-10-12 17:29:46 +02:00
parent c022db4616
commit 5c4a5f8045

View file

@ -392,7 +392,9 @@ function GetApp() {
app.post('/login', (req, res) => {
logger.LogReq(req)
const pw = req.body.pw || false
const pw = req.body.pw
? req.body.pw.replace("'", '').replace('"', '')
: false
const cid = req.body.cid
const isScript = req.body.script
const ip = req.headers['cf-connecting-ip'] || req.connection.remoteAddress