From 897fa58809315ae84786f3b4927e28665ba45e12 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 12:17:28 +0000 Subject: [PATCH] Update file compte.php --- html/compte.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/compte.php b/html/compte.php index fcc04c60..49aa009d 100644 --- a/html/compte.php +++ b/html/compte.php @@ -40,6 +40,8 @@ if(isset($_POST['user_display_name']) && isset($_POST['user_name']) && isset($_P $req->bindParam(":user_id", $_SESSION['userid']); if($req->execute()) { $status = "Informations mises à jour"; + $_SESSION['username'] = htmlspecialchars($_POST['user_name']); + $_SESSION['display_name'] = htmlspecialchars($_POST['user_display_name']); } else { $status = "Erreur, les informations n'ont pas pu être mises à jour."; }