From ce75b9c9fca2b6450ad33c4b8ad98ecb8a456278 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 21 Apr 2026 02:06:53 +0000 Subject: [PATCH] a --- Controleur/ControleurConnexion.php | 1 + Controleur/ControleurConnexiondecompte.php | 1 + Vue/Ajaxconnexioncookie/french.php | 1 - Vue/gabarit.php | 6 +++++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Controleur/ControleurConnexion.php b/Controleur/ControleurConnexion.php index f639d72..fda0a77 100755 --- a/Controleur/ControleurConnexion.php +++ b/Controleur/ControleurConnexion.php @@ -45,6 +45,7 @@ class ControleurConnexion extends Controleur $this->requete->existeParametre("mdp") ) { + $_SESSION['csrf_token_submieted'] = Csrf::generateToken(); $langue = $this->requete->getParametre("langue"); $codeSociete = $this->requete->getParametre("codeSociete"); $login = $this->requete->getParametre("login"); diff --git a/Controleur/ControleurConnexiondecompte.php b/Controleur/ControleurConnexiondecompte.php index b260e94..f9e0593 100755 --- a/Controleur/ControleurConnexiondecompte.php +++ b/Controleur/ControleurConnexiondecompte.php @@ -52,6 +52,7 @@ require_once 'Modele/Societeusercentral.php'; public function connecter() { + $_SESSION['csrf_token_submieted'] = Csrf::generateToken(); $idSaisie = $_SESSION['p_idSaisie']; $utilisateur = $this->utilisateur->getUtilisateurIdsaisie($idSaisie); diff --git a/Vue/Ajaxconnexioncookie/french.php b/Vue/Ajaxconnexioncookie/french.php index 10dc26a..88f9662 100755 --- a/Vue/Ajaxconnexioncookie/french.php +++ b/Vue/Ajaxconnexioncookie/french.php @@ -10,7 +10,6 @@ echo "
"; echo session_id(); echo "
"; - var_dump($_SESSION['csrf_tokens']); ?>