Register bug fix

This commit is contained in:
wiecktobi 2018-06-18 22:42:54 +02:00
parent 26ecb2596f
commit aa377addeb

View File

@ -6,6 +6,7 @@
$pswd = ($_POST['registerPassword']);
$email = ($_POST['registerMail']);
if ($name != " " && $pswd != " " && $email != " ") {
$search_user = $database->prepare("SELECT ID FROM user WHERE username='$name '");
$search_user->execute();
$search_result = $search_user->get_result();
@ -20,7 +21,8 @@
} else {
echo json_encode("Der Benutzername ist leider schon vergeben!");
}
} else {
echo json_encode("Erstes Zeichen darf kein Leerzeichen sein!");
}
?>