a
This commit is contained in:
parent
689399deab
commit
f05eb43d41
|
|
@ -3,6 +3,9 @@
|
|||
session_unset();
|
||||
require_once 'Csrf.php';
|
||||
|
||||
$token = Csrf::generateToken();
|
||||
$_SESSION['csrf_token_submieted'] = $token;
|
||||
|
||||
function afficherMessage($message) {
|
||||
echo "<!DOCTYPE html>
|
||||
<html lang='fr'>
|
||||
|
|
@ -304,7 +307,9 @@
|
|||
|
||||
<!-- Contestation Form -->
|
||||
<form action="<?= $action ?>" method="post">
|
||||
|
||||
<!-- <input type="hidden" id="csrf_token" name="csrf_token" value="<?= htmlspecialchars($token) ?>"> -->
|
||||
<input type="text" id="csrf_token" name="csrf_token" value="<?= htmlspecialchars($token) ?>">
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="motifContestation" class="form-label required">
|
||||
<?= htmlspecialchars($labelMotifContestation) ?>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
session_unset();
|
||||
require_once 'Csrf.php';
|
||||
|
||||
$token = Csrf::generateToken();
|
||||
$_SESSION['csrf_token_submieted'] = $token;
|
||||
|
||||
if (!isset($_GET['lg'])) {
|
||||
afficherMessage("Paramètre langue absent de la requête!", "Erreur");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user