From 6e0fe8f0c2ca2f9e8de44e50600ddb124044dd48 Mon Sep 17 00:00:00 2001 From: KevinRamharak Date: Wed, 3 Jan 2018 14:39:21 +0100 Subject: [PATCH] fixes #17 --- auth.re.php | 4 ++-- register.re.php | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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 +}