This commit is contained in:
KANE LAZENI 2026-04-18 22:19:22 +00:00
parent a425902dc5
commit acbc5a07dc
2 changed files with 3 additions and 4 deletions

View File

@ -47,8 +47,8 @@ class Csrf
*/
public static function field(): string {
$token = self::generateToken();
return '<input type="hidden" name="csrf_token"
value="' . htmlspecialchars($token) . '">';
// return '<input type="hidden" name="csrf_token" value="' . htmlspecialchars($token) . '">';
}
/**

View File

@ -628,8 +628,7 @@
<input class="sr-only" type="text" id="racineWeb" name="racineWeb" value="<?= $racineWeb ?>">
<input class="sr-only" type="text" id="dureeSession" name="dureeSession" value="<?= $_SESSION['dureeSession'] ?>">
<input class="sr-only" type="text" id="nomSociete" name="nomSociete" value="<?= $_SESSION['nomSociete'] ?>">
<input class="sr-only" type="text" id="csrf_token" name="csrf_token" value="<?= Csrf::field(); ?>">
<section class="section main-dashboard">
<div id="contenu">