You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flight-core/tests/server/AuthCheck.php

19 lines
310 B

<?php
declare(strict_types=1);
class AuthCheck
{
/**
* Before
*
* @return void
*/
public function before()
{
if (!isset($_COOKIE['user'])) {
echo '<span id="infotext">Middleware text:</span> You are not authorized to access this route!';
}
}
}