mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-09 14:47:41 +02:00
Replace explicit token instantiation w/ includes/CSRF.php
This commit is contained in:
parent
a1550d8049
commit
8d482845b0
@ -25,6 +25,7 @@
|
||||
|
||||
require_once 'includes/config.php';
|
||||
require_once 'includes/autoload.php';
|
||||
require_once 'includes/CSRF.php';
|
||||
$handler = new RaspAP\Exceptions\ExceptionHandler;
|
||||
$token = new RaspAP\Tokens\CSRFTokenizer;
|
||||
|
||||
@ -58,7 +59,7 @@ initializeApp();
|
||||
<html lang="en" <?php setTheme();?>>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<?php echo $token->CSRFMetaTag() ?>
|
||||
<?php echo \RaspAP\Tokens\CSRF::metaTag(); ?>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
<meta name="description" content="">
|
||||
|
Loading…
x
Reference in New Issue
Block a user