a
This commit is contained in:
parent
a425902dc5
commit
acbc5a07dc
|
|
@ -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) . '">';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user