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.

Update disable login message.

mikeccec996b34c5
diff --git a/pages/_middleware.js b/pages/_middleware.js
index 801fdd9c3..4eef336ec 100644
--- a/pages/_middleware.js
+++ b/pages/_middleware.js
@@ -17,7 +17,7 @@ function customScriptName(req) {
function disableLogin(req) {
if (process.env.DISABLE_LOGIN && req.nextUrl.pathname.endsWith('/login')) {
- return new Response('403 Forbidden', { status: 403 });
+ return new Response('Login is disabled', { status: 403 });
}
}