Update file register.php
This commit is contained in:
parent
8359573f81
commit
9f10323e2a
@ -17,7 +17,7 @@ if (isset($_POST['username']) && isset($_POST['password1']) && isset($_POST['pas
|
|||||||
$status = "Caractères illégaux";
|
$status = "Caractères illégaux";
|
||||||
} else {
|
} else {
|
||||||
$userEmail = isset($_POST['email']) ? strtolower($_POST['email']) : NULL;
|
$userEmail = isset($_POST['email']) ? strtolower($_POST['email']) : NULL;
|
||||||
$userDisplayName = htmlspecialchars(substr($_POST['username']));
|
$userDisplayName = htmlspecialchars(substr($_POST['username'], 0, 20));
|
||||||
$userName = str_replace(" ", "_", strtolower(htmlspecialchars(substr($_POST['username'], 0, 20))));
|
$userName = str_replace(" ", "_", strtolower(htmlspecialchars(substr($_POST['username'], 0, 20))));
|
||||||
|
|
||||||
$sqlRequest = "SELECT ID FROM users WHERE username = :username";
|
$sqlRequest = "SELECT ID FROM users WHERE username = :username";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user