Authentifizierung lief schief

This commit is contained in:
ChK
2026-02-04 21:59:55 +01:00
parent ed301a7f61
commit b257f280db

View File

@@ -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);
});