From 7478112077143aadafe55517e2db4a3da2420469 Mon Sep 17 00:00:00 2001 From: khanon Date: Sun, 16 Jul 2023 07:31:44 +0000 Subject: [PATCH] fixes embarrassing auth oversight --- src/proxy/auth/gatekeeper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/auth/gatekeeper.ts b/src/proxy/auth/gatekeeper.ts index 06543cc..18f640d 100644 --- a/src/proxy/auth/gatekeeper.ts +++ b/src/proxy/auth/gatekeeper.ts @@ -33,7 +33,7 @@ export const gatekeeper: RequestHandler = (req, res, next) => { // TODO: Generate anonymous users based on IP address for public or proxy_key // modes so that all middleware can assume a user of some sort is present. - if (token === ADMIN_KEY) { + if (ADMIN_KEY && token === ADMIN_KEY) { return next(); }