fix: update error messages and statuses in VerifyRegistrationOTP function for clarity
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m45s

This commit is contained in:
2025-04-18 18:53:20 +05:00
parent cd2cff7926
commit e0e3de064a
3 changed files with 17 additions and 7 deletions

View File

@ -174,8 +174,9 @@ export async function VerifyRegistrationOTP(
if (error) {
return {
message: "Your account could not be verified. Please contact support.",
status: "verify_error",
message:
"There was an error fetching your account information. Please contact support.",
status: "user_check_error",
};
}
if (userVerified.verified) {
@ -184,13 +185,18 @@ export async function VerifyRegistrationOTP(
);
if (mobileLoginError) {
return {
message: "Your account could not be verified. Please contact support.",
status: "verify_error",
message: "Login Failed. Please contact support.",
status: "login_error",
};
}
if (mobileLoginResponse) {
redirect(`/auth/verify-otp?phone_number=${mobile}`);
}
} else {
return {
message: "Your account could not be verified. Please contact support.",
status: "verify_error",
};
}
return {