auto forward on successfull login

This commit is contained in:
Thies Mueller 2021-01-08 18:07:00 +01:00
parent 2d60d38045
commit fabb233496

View File

@ -16,7 +16,7 @@ if(isset($_GET['login'])) {
$_SESSION['username'] = $user['username']; $_SESSION['username'] = $user['username'];
$_SESSION['givenName'] = $user['givenName']; $_SESSION['givenName'] = $user['givenName'];
$_SESSION['lastName'] = $user['lastName']; $_SESSION['lastName'] = $user['lastName'];
die('successfull. go to: <a href="secure.php">secure page</a>'); die('successfull. go to: <a href="secure.php">secure page</a><meta http-equiv="refresh" content="0; URL=secure.php">');
} else { } else {
$errorMessage = "somethings wrong (maybe wrong password or wrong user)<br>"; $errorMessage = "somethings wrong (maybe wrong password or wrong user)<br>";
} }