diff --git a/html/register.php b/html/register.php index 0f740ac5..058efa43 100644 --- a/html/register.php +++ b/html/register.php @@ -19,6 +19,8 @@ if(isset($_POST['username']) && isset($_POST['password']) && isset($_POST['passw $req = $bdd->prepare("INSERT INTO users (username, password, email, display_name, role) VALUES (:username, :password, :email, :display_name, 0)"); $req->bindParam(':username', htmlspecialchars($_POST['username'])); $req->bindParam(':password', md5($_POST['password'])); + $req->bindParam(':email', htmlspecialchars($_POST['email'])); + $req->bindParam(':display_name', htmlspecialchars($_POST['display_name'])); if ($req->execute()) { header("Location: login.php"); exit();