From 9c67386d690eb9bd07877a65ab35312d05da2f7c Mon Sep 17 00:00:00 2001 From: i701 Date: Sun, 20 Apr 2025 08:29:27 +0500 Subject: [PATCH] fix: correct user verification logic in VerifyRegistrationOTP function --- queries/authentication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/authentication.ts b/queries/authentication.ts index 255c102..18fc7d4 100644 --- a/queries/authentication.ts +++ b/queries/authentication.ts @@ -198,7 +198,7 @@ export async function VerifyRegistrationOTP( // redirect(`/auth/verify-otp?phone_number=${mobile}`); // } } - if (data.message !== "User created successfully.") { + if (data.message === "User created successfully.") { return { message: "Your account could not be verified. Please contact support.", status: "verify_error",