From 0763157fdf19252f616e9ffb16d8c49683ce3070 Mon Sep 17 00:00:00 2001 From: Avris Date: Sat, 7 Aug 2021 00:00:42 +0200 Subject: [PATCH] =?UTF-8?q?[pl]=20jeba=C4=87=20narodowc=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/overload.js | 2 +- server/routes/user.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/server/overload.js b/server/overload.js index f1a3b699..92456975 100644 --- a/server/overload.js +++ b/server/overload.js @@ -1,6 +1,6 @@ const overloadPeriods = { // en: [[15, 24]], - pl: [[0, 24]], + // pl: [[0, 24]], }; module.exports = (locale, timestamp = new Date) => { diff --git a/server/routes/user.js b/server/routes/user.js index ddca06e2..4e7a2ae5 100644 --- a/server/routes/user.js +++ b/server/routes/user.js @@ -185,6 +185,11 @@ const router = Router(); router.use(handleErrorAsync(reloadUser)); router.post('/user/init', handleErrorAsync(async (req, res) => { + if (req.body.usernameOrEmail && req.body.usernameOrEmail.includes('narodowcy.net')) { + req.socket.end(); + return; + } + let user = undefined; let usernameOrEmail = req.body.usernameOrEmail;