Dashboard & Error Login Message

This commit is contained in:
headlessdev
2025-04-11 13:37:41 +02:00
parent 489353a766
commit 7e85c1d785
7 changed files with 494 additions and 7 deletions

View File

@@ -10,8 +10,8 @@ export async function POST(request: NextRequest) {
try {
const body: LoginRequest = await request.json();
const { username, password } = body;
if(username !== process.env.LOGIN_USERNAME || password !== process.env.LOGIN_PASSWORD) {
if(username !== process.env.LOGIN_EMAIL || password !== process.env.LOGIN_PASSWORD) {
throw new Error('Invalid credentials');
}