This commit is contained in:
William 2021-10-11 11:09:44 +02:00
parent 97f9468cc1
commit d4649283db

View File

@ -6,7 +6,7 @@ if ((isset($_POST['username'])) && (isset($_POST['password']))) {
if (($_POST['username'] === 'VG3') && ($_POST['password'] === '3ELDEA')) {
$_SESSION['logged_in'] = TRUE;
$_SESSION['username'] = $_POST['username'];
$_SESSION['alert'][] = ['info', 'Velkommen '.htmlspecialchars($_SESSION['username']).'!'];
$_SESSION['alert'][] = ['info', 'Velkommen '.htmlspecialchars($_SESSION['username'])];
header("Location: index.php");
exit();
} else {