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