Merge pull request #26 from KevinRamharak/issue-17-filter-sanitize-password-strips-characters

Removed filter for password Fixes #17
This commit is contained in:
Simon Fortier 2018-01-03 18:42:58 -05:00 committed by GitHub
commit 00182c2b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -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);

View File

@ -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