mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-02 03:38:22 +00:00
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
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m45s
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user