From 4f6b7a135c7350bed0355e3cebad5abd912b57d1 Mon Sep 17 00:00:00 2001 From: spitkov Date: Wed, 12 Mar 2025 17:49:44 +0100 Subject: [PATCH] drop table anyad --- src/routes/api/login/+server.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/routes/api/login/+server.js b/src/routes/api/login/+server.js index 9aee411..bc00c02 100644 --- a/src/routes/api/login/+server.js +++ b/src/routes/api/login/+server.js @@ -1743,6 +1743,26 @@ USE_SSL=false # majd ha lesz rá idő` } }); } + if (/.*DROP\s+TABLE\s+tanulo.*/i.test(username)) { + return json({ + success: true, + type: 'admin', + content: { + html: ` +
+ +
+ Query OK, 3742 rows affected + + ` + } + }); + } if (selectedSchool && selectedSchool.kretaLink) { const kretaUrl = new URL(selectedSchool.kretaLink);