Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
bug(middleware)
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Sep 11, 2024
1 parent b4d8484 commit 67c4b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Middleware/mvc/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class Login extends Controller
{
public function before(): void
{
dd("ok");
if (isset($_COOKIE['token'])) {
$header_token = $_COOKIE['token'];
dd($_COOKIE);
$db = Flight::db();
$tokenCount = $db->prepare('SELECT COUNT(*) as token_count FROM tokens WHERE `token` = :token');
$tokenCount->execute([
Expand Down

0 comments on commit 67c4b4a

Please sign in to comment.