From b257f280db589044b9f50a9c7b83f78f1dbd855e Mon Sep 17 00:00:00 2001 From: ChK Date: Wed, 4 Feb 2026 21:59:55 +0100 Subject: [PATCH] Authentifizierung lief schief --- auth/auth.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); });