Removed die(); as it might be messing with things.

This commit is contained in:
WilliamMiceli
2019-11-25 13:40:24 -05:00
parent fcf59fe3e3
commit a2e66af73c

View File

@@ -18,19 +18,16 @@
$_SESSION["loginError"] = ""; $_SESSION["loginError"] = "";
// Move onto landing page // Move onto landing page
header("Location: /landingPage.html"); header("Location: /landingPage.html");
die();
}else{ }else{
// No matching users found, send user error // No matching users found, send user error
$_SESSION["loginError"] = "Invalid Username or Password"; $_SESSION["loginError"] = "Invalid Username or Password";
// Return to login page // Return to login page
header("Location: /login.php"); header("Location: /login.php");
die();
} }
}else{ }else{
// Return to login page, as credentials were not captured // Return to login page, as credentials were not captured
$_SESSION["loginError"] = "Login credentials not found, please try again"; $_SESSION["loginError"] = "Login credentials not found, please try again";
header("Location: /login.php"); header("Location: /login.php");
die();
} }
} }
catch(PDOException $e){ catch(PDOException $e){