mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
🚑 Hotfix password not working
This commit is contained in:
@@ -2,7 +2,7 @@ import { NextFetchEvent, NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
// eslint-disable-next-line consistent-return
|
||||
export function middleware(req: NextRequest, ev: NextFetchEvent) {
|
||||
const isCorrectPassword = req.cookies.get('password') === process.env.PASSWORD;
|
||||
const isCorrectPassword = req.cookies.get('password')?.value === process.env.PASSWORD;
|
||||
const url = req.nextUrl.clone();
|
||||
const skipURL =
|
||||
url.pathname &&
|
||||
|
||||
Reference in New Issue
Block a user