mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Update disable login message.
This commit is contained in:
parent
8a0ca5e24f
commit
ccec996b34
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue