diff --git a/auth.re.php b/auth.re.php index 69de92c..78c08e8 100644 --- a/auth.re.php +++ b/auth.re.php @@ -6,7 +6,7 @@ include_once "include/MessageCookie.php"; include_once "include/SessionManager.php"; $username = filter_var($_POST['username'], FILTER_SANITIZE_STRING); -$password = filter_var($_POST['password'], FILTER_SANITIZE_STRING); +$password = $_POST['password']; $user = UserManager::auth($username, $password); @@ -23,4 +23,4 @@ if ($user != NULL) { header("Location: login.php#login"); -} \ No newline at end of file +} diff --git a/register.re.php b/register.re.php index 110f696..60864fe 100644 --- a/register.re.php +++ b/register.re.php @@ -6,8 +6,7 @@ include_once "include/SessionManager.php"; include_once "include/SqlConnection.php"; $username = filter_var($_POST['username'], FILTER_SANITIZE_STRING); -$password = filter_var($_POST['password'], FILTER_SANITIZE_STRING); - +$password = $_POST['password']; //Validate user / pass @@ -38,4 +37,4 @@ if (strlen($username) < 5 || strlen($username) > 20) { header("Location: login.php#register"); } -} \ No newline at end of file +}