mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Fixed disable login not working.
This commit is contained in:
parent
b8e2258f04
commit
e63fa9a784
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export default async (
|
||||||
req: NextApiRequestQueryBody<any, LoginRequestBody>,
|
req: NextApiRequestQueryBody<any, LoginRequestBody>,
|
||||||
res: NextApiResponse<LoginResponse>,
|
res: NextApiResponse<LoginResponse>,
|
||||||
) => {
|
) => {
|
||||||
if (process.env.DISABLE_LOGIN) {
|
if (process.env.disableLogin) {
|
||||||
return forbidden(res);
|
return forbidden(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue