fix: correct user verification logic in VerifyRegistrationOTP function
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m42s

This commit is contained in:
i701 2025-04-20 08:29:27 +05:00
parent 886b0b15d0
commit 9c67386d69

View File

@ -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",