mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
SQL thingy fix, oops
This commit is contained in:
parent
c022db4616
commit
5c4a5f8045
1 changed files with 3 additions and 1 deletions
|
@ -392,7 +392,9 @@ function GetApp() {
|
||||||
|
|
||||||
app.post('/login', (req, res) => {
|
app.post('/login', (req, res) => {
|
||||||
logger.LogReq(req)
|
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 cid = req.body.cid
|
||||||
const isScript = req.body.script
|
const isScript = req.body.script
|
||||||
const ip = req.headers['cf-connecting-ip'] || req.connection.remoteAddress
|
const ip = req.headers['cf-connecting-ip'] || req.connection.remoteAddress
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue