Update disable login message.

This commit is contained in:
mike 2022-06-10 11:23:00 -07:00
parent 8a0ca5e24f
commit ccec996b34

View File

@ -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 });
}
}