From 389a6b3b534a8d11d92baec99f276bc344c06cae Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 18 Apr 2026 23:21:00 +0000 Subject: [PATCH] a --- Controleur/ControleurRecherche.php | 4 +++- Vue/gabarit.php | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Controleur/ControleurRecherche.php b/Controleur/ControleurRecherche.php index f3885590..66430cad 100755 --- a/Controleur/ControleurRecherche.php +++ b/Controleur/ControleurRecherche.php @@ -48,6 +48,7 @@ class ControleurRecherche extends Controleur { $email=trim($_POST['email']); */ + /* var_dump( array( "submittedToken" => $csrf_token, @@ -57,7 +58,8 @@ class ControleurRecherche extends Controleur { ); exit; - + */ + if (!Csrf::validateToken($csrf_token)) { http_response_code(403); exit('Accès interdit.'); diff --git a/Vue/gabarit.php b/Vue/gabarit.php index d08fcd24..642da1d7 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -638,7 +638,6 @@ /* var_dump( array( - "csrf_token" => $_SESSION['csrf_token'], // "codeGcAssureurDefaut" => $_SESSION['codeGcAssureurDefaut'], // "codeGcAssureur_C" => $_SESSION['codeGcAssureur_C'], // "dossierSociete" => $_SESSION['dossierSociete'],