Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed disable login not working.

Mike Caoe63fa9a78411
diff --git a/src/pages/api/auth/login.ts b/src/pages/api/auth/login.ts
index ab17c9376..fc671785e 100644
--- a/src/pages/api/auth/login.ts
+++ b/src/pages/api/auth/login.ts
@@ -37,7 +37,7 @@ export default async (
req: NextApiRequestQueryBody<any, LoginRequestBody>,
res: NextApiResponse<LoginResponse>,
) => {
- if (process.env.DISABLE_LOGIN) {
+ if (process.env.disableLogin) {
return forbidden(res);
}