auto forward on successfull login
This commit is contained in:
parent
2d60d38045
commit
fabb233496
@ -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>";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user