Redirect to home when logged in
This commit is contained in:
parent
a65e3724f4
commit
e416a916be
1 changed files with 2 additions and 0 deletions
|
@ -18,7 +18,9 @@ if (isset($_POST['email'], $_POST['password'])) {
|
|||
)->fetch();
|
||||
|
||||
$_SESSION['user'] = $user;
|
||||
}
|
||||
|
||||
if (isset($_SESSION['user'])) {
|
||||
header('Location: ?page=home');
|
||||
die();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue