Remove duplicate token div

This is already added in header.php

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-05-17 10:50:28 +03:00
parent ac8ece7d05
commit c108f7eef0
6 changed files with 3 additions and 45 deletions
-9
View File
@@ -6,16 +6,7 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
// Generate CSRF token
if(empty($_SESSION['token'])) {
$_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));
}
$token = $_SESSION['token'];
?>
<!-- Send PHP info to JS -->
<div id="token" hidden><?php echo $token ?></div>
<div class="page-header">
<h1>Compute graphical statistics from the Pi-hole query database</h1>