From cf172b73c33e012b526bab1a54eb29be7b1db9d6 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 1 Feb 2023 19:58:55 -0600 Subject: [PATCH] Remove lowercase conversion in validateAdmin Damn, always deploy to development before production to catch stuff stupid like this. Ugh. --- src/utils/server_helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/server_helpers.ts b/src/utils/server_helpers.ts index c634f1a..dac89ba 100644 --- a/src/utils/server_helpers.ts +++ b/src/utils/server_helpers.ts @@ -45,8 +45,8 @@ export async function validateAdmin( response: ServerResponse ): Promise { // Acquire admin credentials - const username = request.cookies[cookies.admin_username]?.toLowerCase(); - const password = request.cookies[cookies.admin_password]?.toLowerCase(); + const username = request.cookies[cookies.admin_username]; + const password = request.cookies[cookies.admin_password]; if (username == null || password == null) { if (username != null) deleteCookie(cookies.admin_username, { req: request, res: response });