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 @@ +
+ Загрузка... +