From fd74c294b1c0959cc9073b3c758632fb06d9cb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Thu, 10 Aug 2023 19:35:43 +0300 Subject: [PATCH] Fix key checking --- app/doorboy-proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/doorboy-proxy.py b/app/doorboy-proxy.py index 0347904..3454f84 100755 --- a/app/doorboy-proxy.py +++ b/app/doorboy-proxy.py @@ -60,6 +60,7 @@ async def view_doorboy_uids(request): @app.route("/longpoll", stream=True) async def view_longpoll(request): response = await request.respond(content_type="text/event-stream") + key = request.headers.get("KEY") if not key or key not in [DOORBOY_SECRET_FLOOR, DOORBOY_SECRET_WORKSHOP]: return text("Invalid token")