From 0194881580363aa22917642e403bdee5b7d1c37c Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 25 May 2026 16:39:34 +0530 Subject: [PATCH] first commit --- controller/loginUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/loginUser.js b/controller/loginUser.js index e1964e7..59f3350 100644 --- a/controller/loginUser.js +++ b/controller/loginUser.js @@ -7,7 +7,7 @@ const JWT_SECRET = 'secretkey'; const loginUser = async (req, res) => { try { const { username, password } = req.body; -return res.send("hello"); + if (!username || !password) { return res.status(400).json({