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,