Register bug fix
This commit is contained in:
parent
26ecb2596f
commit
aa377addeb
@ -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!");
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user