mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-04-10 14:26:44 +00:00
fixes #17
This commit is contained in:
parent
d4732d8946
commit
6e0fe8f0c2
@ -6,7 +6,7 @@ include_once "include/MessageCookie.php";
|
|||||||
include_once "include/SessionManager.php";
|
include_once "include/SessionManager.php";
|
||||||
|
|
||||||
$username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);
|
$username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);
|
||||||
$password = filter_var($_POST['password'], FILTER_SANITIZE_STRING);
|
$password = $_POST['password'];
|
||||||
|
|
||||||
|
|
||||||
$user = UserManager::auth($username, $password);
|
$user = UserManager::auth($username, $password);
|
||||||
@ -23,4 +23,4 @@ if ($user != NULL) {
|
|||||||
|
|
||||||
header("Location: login.php#login");
|
header("Location: login.php#login");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,8 +6,7 @@ include_once "include/SessionManager.php";
|
|||||||
include_once "include/SqlConnection.php";
|
include_once "include/SqlConnection.php";
|
||||||
|
|
||||||
$username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);
|
$username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);
|
||||||
$password = filter_var($_POST['password'], FILTER_SANITIZE_STRING);
|
$password = $_POST['password'];
|
||||||
|
|
||||||
|
|
||||||
//Validate user / pass
|
//Validate user / pass
|
||||||
|
|
||||||
@ -38,4 +37,4 @@ if (strlen($username) < 5 || strlen($username) > 20) {
|
|||||||
header("Location: login.php#register");
|
header("Location: login.php#register");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user