From e63fa9a784112e7922559bbfeb02849776cdf312 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 15 Jan 2025 21:32:46 -0800 Subject: [PATCH] Fixed disable login not working. --- src/pages/api/auth/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/auth/login.ts b/src/pages/api/auth/login.ts index ab17c937..fc671785 100644 --- a/src/pages/api/auth/login.ts +++ b/src/pages/api/auth/login.ts @@ -37,7 +37,7 @@ export default async ( req: NextApiRequestQueryBody, res: NextApiResponse, ) => { - if (process.env.DISABLE_LOGIN) { + if (process.env.disableLogin) { return forbidden(res); }