Redirect to home when logged in

This commit is contained in:
Jay Trees 2022-01-14 10:08:00 +01:00
parent a65e3724f4
commit e416a916be

View file

@ -18,7 +18,9 @@ if (isset($_POST['email'], $_POST['password'])) {
)->fetch();
$_SESSION['user'] = $user;
}
if (isset($_SESSION['user'])) {
header('Location: ?page=home');
die();
}