Login fix
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user