fixed routing issue in forgot_password
This commit is contained in:
parent
b978919ccb
commit
31f38da140
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue