From ed1088949baaab4129528d4b4f7fc069ccc5ee1e Mon Sep 17 00:00:00 2001 From: viraterletska Date: Thu, 25 Apr 2024 14:02:25 +0200 Subject: [PATCH] bug fix when login with invalid credentials its shown now --- gatewayservice/gateway-service.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 0ae2400..ea71366 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -33,6 +33,7 @@ app.post('/login', async (req, res) => { res.json(authResponse.data); } catch (error) { console.error(error); + res.status(401).json({error:error}); } });