fix: correct user verification logic in VerifyRegistrationOTP function
This commit is contained in:
@@ -198,7 +198,7 @@ export async function VerifyRegistrationOTP(
|
|||||||
// redirect(`/auth/verify-otp?phone_number=${mobile}`);
|
// redirect(`/auth/verify-otp?phone_number=${mobile}`);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
if (data.message !== "User created successfully.") {
|
if (data.message === "User created successfully.") {
|
||||||
return {
|
return {
|
||||||
message: "Your account could not be verified. Please contact support.",
|
message: "Your account could not be verified. Please contact support.",
|
||||||
status: "verify_error",
|
status: "verify_error",
|
||||||
|
|||||||
Reference in New Issue
Block a user