From 532451de7a934f28a8035830d1ee20f6109563e4 Mon Sep 17 00:00:00 2001 From: Aditya30ag Date: Mon, 25 May 2026 23:05:04 +0530 Subject: [PATCH] fix(auth): correct OTP verification error message and status code --- 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..81dc15f 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(400).json({ error: "incorrect OTP", status: 400 }); } const otp = generateOTP();