This commit is contained in:
KANE LAZENI 2026-04-21 02:53:15 +00:00
parent 566697e6f7
commit d888a2d92e

View File

@ -70,20 +70,23 @@ class ControleurRecherche extends Controleur {
{
$csrf_token = trim($this->requete->getParametreFormulaire("csrf_token"));
var_dump(
array(
"csrf_token" => $csrf_token,
)
);
exit;
$_SESSION['flash_error'] = 'RAS';
if (!Csrf::validateToken($csrf_token)) {
$_SESSION['flash_error'] = 'Votre session a expiré. Veuillez réessayer.';
header('Location: ' . $_SERVER['HTTP_REFERER']);
exit;
// header('Location: ' . $_SERVER['HTTP_REFERER']);
// exit;
}
var_dump(
array(
"csrf_token" => $csrf_token,
"flash_error" => $_SESSION['flash_error'],
)
);
exit;
$numeroBeneficiaire = trim($this->requete->getParametreFormulaire("numeroBeneficiaire"));
$numeroBonConsultation = trim($this->requete->getParametreFormulaire("numeroBonConsultation"));
$numeroBonOrdonnance = trim($this->requete->getParametreFormulaire("numeroBonOrdonnance"));