fixed routing issue in forgot_password

This commit is contained in:
jouls 2024-04-17 10:45:14 +08:00
parent b978919ccb
commit 31f38da140
1 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,13 @@
if ($result > 0) {
$_SESSION["isVendor"] = true;
}
header("location: $url");
if ($url == "/forgot_password.php" || $url == "/forget_otp.php")
{
header("location: index.php");
}else {
header("location: $url");
}
} else {
// $_SESSION["loginError"] = "Invalid email or password. Please try again.";
header("location: login.php?error=1");