diff --git a/auth/auth.js b/auth/auth.js index c4a279f..266e09d 100755 --- a/auth/auth.js +++ b/auth/auth.js @@ -51,7 +51,10 @@ app.post('/api/event', (req,res)=>{ // Optional für Nginx auth_request app.get("/internal/auth", (req,res)=>{ - if(req.cookies.SESSIONID) return res.sendStatus(200); + const sid = req.cookies.SESSIONID; + if (sid && SESSIONS[sid]) { + return res.sendStatus(200); + } return res.sendStatus(401); });