From 1aa0c36c841bee3655664dd98a3b3d6cbb75033b Mon Sep 17 00:00:00 2001 From: Deolys Date: Wed, 22 May 2024 22:42:58 +0300 Subject: [PATCH] post login fixed --- server/routers/webstar-project/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers/webstar-project/index.js b/server/routers/webstar-project/index.js index 711ad2b..0adbf8f 100644 --- a/server/routers/webstar-project/index.js +++ b/server/routers/webstar-project/index.js @@ -71,7 +71,7 @@ router.post('/login', (request, response) => { const user = users.data.find(user => user.email === email && user.password === password); if (!user) { - response.status(401).send('Invalid credentials'); + return response.status(401).send('Invalid credentials'); } const responseObject = {