From 59b0d588cb4e832b0a155ab115d97bfbc63470f4 Mon Sep 17 00:00:00 2001 From: Anatoly Kopyl Date: Sun, 28 Mar 2021 19:52:04 +0300 Subject: [PATCH] =?UTF-8?q?:adhesive=5Fbandage:=20=D0=98=D0=B7=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=D1=81=D1=8F=20=D0=BE=D1=82=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D0=B8=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=B0,=20=D0=BA=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B8=D1=82=20=D0=BF=D0=B0?= =?UTF-8?q?=D1=80=D0=BE=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/index.js | 2 +- frontend/src/components/Game.vue | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/index.js b/backend/index.js index a0f0060..acb0ee6 100644 --- a/backend/index.js +++ b/backend/index.js @@ -42,7 +42,7 @@ app.post('/auth', async (req, res) => { } else { try { const pass = req.body.pass - if (pass.toLowerCase() === process.env.PASSWORD) { + if (pass && pass.toLowerCase() === process.env.PASSWORD) { req.session.loggedIn = true res.status(200).send("Logged in") } else { diff --git a/frontend/src/components/Game.vue b/frontend/src/components/Game.vue index 3a2b92e..c9d109c 100644 --- a/frontend/src/components/Game.vue +++ b/frontend/src/components/Game.vue @@ -13,6 +13,9 @@ +
+ Загрузка... +