mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +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) {
|
||||
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