From ce47c0730b3b2c22228dd2afcf4eb0058fec20a0 Mon Sep 17 00:00:00 2001 From: Khushal P Soonderji Date: Thu, 19 Jun 2025 16:48:34 +0530 Subject: [PATCH] (20250619) Small bug fixed in the response code of the OTP verification API. --- api_v2/blueprints/otp/blueprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_v2/blueprints/otp/blueprint.py b/api_v2/blueprints/otp/blueprint.py index b909523..fb80dca 100644 --- a/api_v2/blueprints/otp/blueprint.py +++ b/api_v2/blueprints/otp/blueprint.py @@ -272,7 +272,7 @@ async def verify_otp( "isValid": is_valid, "attemptsLeft": attempts_left }, - http_code = HttpCodes.UNAUTHORIZED + http_code = HttpCodes.SUCCESS if is_valid else HttpCodes.UNAUTHORIZED )