diff --git a/includes/pages/login.php b/includes/pages/login.php index f6d3fdda..6f0e9bb1 100644 --- a/includes/pages/login.php +++ b/includes/pages/login.php @@ -18,7 +18,9 @@ if (isset($_POST['email'], $_POST['password'])) { )->fetch(); $_SESSION['user'] = $user; +} +if (isset($_SESSION['user'])) { header('Location: ?page=home'); die(); }