redesigned code

This commit is contained in:
Joey Lai
2017-01-25 11:19:01 +01:00
parent 4b6fe1d202
commit 981e34c950
8 changed files with 55 additions and 28 deletions

View File

@@ -45,7 +45,7 @@
}
try{
$username = test_input(($_POST["username"]));
$username = str_replace(' ', '', test_input(($_POST["username"])));
checkInputChoice($username, "username");
} catch(usernameException $e){
$correct = false;
@@ -53,7 +53,7 @@
}
try{
$password = test_input(($_POST["password"]));
$password = str_replace(' ', '', test_input(($_POST["password"])));
checkInputChoice($password, "longerEight");
matchPassword();
} catch(passwordException $e){