mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-03 23:57:37 +01:00
Update disable login message.
This commit is contained in:
parent
8a0ca5e24f
commit
ccec996b34
@ -17,7 +17,7 @@ function customScriptName(req) {
|
|||||||
|
|
||||||
function disableLogin(req) {
|
function disableLogin(req) {
|
||||||
if (process.env.DISABLE_LOGIN && req.nextUrl.pathname.endsWith('/login')) {
|
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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user