This commit is contained in:
2021-03-16 12:46:44 +01:00
parent 8162c89051
commit 67ac104b4b
15 changed files with 56 additions and 61 deletions
+3 -3
View File
@@ -19,17 +19,17 @@ if(isset($_POST['aLogin'])){
$_SESSION['userName'] = $userName;
$_SESSION['admin'] = true;
$_SESSION['success'] = "You are now logged in";
header('location: ../../../Frontend/index.php?login=success');
header('location: ../../../Frontend/index.html?login=success');
}else{
session_destroy();
header('location: ../../../Frontend/index.php?login=failed?reason=password');
header('location: ../../../Frontend/index.html?login=failed?reason=password');
}
}
else{
session_destroy();
header('location: ../../../Frontend/index.php?login=failed?reason=username');
header('location: ../../../Frontend/index.html?login=failed?reason=username');
}