Login fix

This commit is contained in:
2021-03-12 11:10:14 +01:00
parent a31ed44bdd
commit c6e002d464
12 changed files with 43 additions and 35 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.php?login=success');
}else{
session_destroy();
header('location: ../Frontend/index.php?login=failed?reason=password');
header('location: ../../../Frontend/index.php?login=failed?reason=password');
}
}
else{
session_destroy();
header('location: ../Frontend/index.php?login=failed?reason=username');
header('location: ../../../Frontend/index.php?login=failed?reason=username');
}