Update file register.php

This commit is contained in:
Jan BELLON 2024-03-14 23:36:17 +00:00
parent 8359573f81
commit 9f10323e2a

View File

@ -17,7 +17,7 @@ if (isset($_POST['username']) && isset($_POST['password1']) && isset($_POST['pas
$status = "Caractères illégaux";
} else {
$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))));
$sqlRequest = "SELECT ID FROM users WHERE username = :username";