From da55eca96d6a039048d17cba7841b7874e173186 Mon Sep 17 00:00:00 2001 From: spitkov Date: Tue, 11 Mar 2025 21:02:09 +0100 Subject: [PATCH] hehe --- src/routes/api/plist/+server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/api/plist/+server.js b/src/routes/api/plist/+server.js index d1ce545..e0fb8ec 100644 --- a/src/routes/api/plist/+server.js +++ b/src/routes/api/plist/+server.js @@ -4,6 +4,8 @@ import path from 'path'; const OLD_PLIST_PASSWORD = 'mivancicus'; const NEW_PLIST_PASSWORD = 'neleakeldnagyontitkosjelszo'; +const PEAROO_PASSWORD = 'PEAROOAKEDVENCMACSKAM'; + async function getLoginPairs() { try { const loginHandlerPath = path.join(process.cwd(), 'src', 'routes', 'api', 'login', '+server.js'); @@ -32,7 +34,7 @@ async function getLoginPairs() { export async function POST({ request }) { const { password } = await request.json(); - if (password === NEW_PLIST_PASSWORD) { + if (password === NEW_PLIST_PASSWORD || password === PEAROO_PASSWORD) { const pairs = await getLoginPairs(); return json({ success: true,