From 5bcd96367e145e32e81c685956cbb2916e803c29 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Fri, 12 Jun 2026 10:51:24 +0530 Subject: [PATCH] fix otp verification response --- server/src/routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/auth.js b/server/src/routes/auth.js index dac1f9b..bf06ec2 100644 --- a/server/src/routes/auth.js +++ b/server/src/routes/auth.js @@ -204,7 +204,7 @@ router.post("/verify", expressRateLimit("otp"), async (req, res) => { status: 201, }); } - return res.status(432).json({ error: "incorrect passowrd", status: 432 }); + return res.status(401).json({ error: "incorrect OTP", status: 401 }); } const otp = generateOTP();