(20250619) Small bug fixed in the response code of the OTP verification API.

This commit is contained in:
2025-06-19 16:48:34 +05:30
parent 594706c549
commit ce47c0730b
+1 -1
View File
@@ -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
)