This commit is contained in:
KANE LAZENI 2026-07-18 07:16:31 +00:00
parent a8b56cd236
commit 345e30e6d1

View File

@ -32,10 +32,16 @@ class ControleurRechercheprestations extends Controleur {
$this->beneficiaire->getModeBiometrie();
if(!empty($_POST))
// if (isset($_POST['numeroBeneficiaire']))
{
$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'));
$nomBeneficiaire = trim($this->requete->getParametreFormulaire('nomBeneficiaire'));