Start php session before generating output for API token

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-03-16 13:47:56 +01:00
parent db636827c7
commit 77c7a12867

View File

@@ -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">';