diff --git a/Controleur/ControleurRecherche.php b/Controleur/ControleurRecherche.php index efc6dcea..631edc14 100755 --- a/Controleur/ControleurRecherche.php +++ b/Controleur/ControleurRecherche.php @@ -29,6 +29,13 @@ class ControleurRecherche extends Controleur { if(!empty($_POST)) { $csrf_token = trim($this->requete->getParametreFormulaire("csrf_token")); + + if (!Csrf::validateToken($csrf_token)) { + $_SESSION['flash_error'] = 'Votre session a expiré. Veuillez réessayer.'; + + header('Location: ' . $_SERVER['HTTP_REFERER']); + exit; + } $numeroBeneficiaire = trim($this->requete->getParametreFormulaire("numeroBeneficiaire")); $numeroAdherent = trim($this->requete->getParametreFormulaire("numeroAdherent")); @@ -37,13 +44,6 @@ class ControleurRecherche extends Controleur { $telephonePortable = trim($this->requete->getParametreFormulaire("telephonePortable")); $email = trim($this->requete->getParametreFormulaire("email")); - if (!Csrf::validateToken($csrf_token)) { - $_SESSION['flash_error'] = 'Votre session a expiré. Veuillez réessayer.'; - - header('Location: ' . $_SERVER['HTTP_REFERER']); - exit; - } - if($numeroBeneficiaire != '') { $derniernumerobeneficiaires = $this->beneficiaire->getnumerobeneficiairesperdu($numeroBeneficiaire); diff --git a/Vue/Recherche/index_test.php b/Vue/Recherche/index_test.php deleted file mode 100755 index 74f19e4c..00000000 --- a/Vue/Recherche/index_test.php +++ /dev/null @@ -1,201 +0,0 @@ -
- -
- -
-
- - - 0): ?> -
- -
- : - - - - -
-
- - - -
-
- - -
-
-
- - -
-
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- - -
-
- - -
-
-
- -
- - - - -
-
-
- -
- - - - -
-
-
- -
-
- -
-
-
- - -
-
- - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - # -
- - Fam: - -
-
- -
-
- -
-
- - - - - - · -
- - - - -
- - - - - -
- -
-
-
- -
- - \ No newline at end of file