From 2c845f0e4faac3bed69a01ae0e8e625f4cdb4dc8 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 20:25:38 +0000 Subject: [PATCH] Update file register.php --- html/register.php | 2 ++ 1 file changed, 2 insertions(+) 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();