mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 10:19:47 +01:00
Start php session before generating output for API token
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
<?php
|
||||
require "auth.php";
|
||||
require "password.php";
|
||||
check_cors();
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
@@ -24,10 +30,6 @@ body {
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require "auth.php";
|
||||
require "password.php";
|
||||
check_cors();
|
||||
|
||||
if($auth) {
|
||||
if(strlen($pwhash) > 0) {
|
||||
echo '<div class="qrcode">';
|
||||
|
||||
Reference in New Issue
Block a user