Skip to content

Commit

Permalink
bug(middleware)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 11, 2024
1 parent 67c4b4a commit 7784816
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 @@ -10,8 +10,8 @@ class Login extends Controller
public function before(): void
{
if (isset($_COOKIE['token'])) {
$header_token = $_COOKIE['token'];
dd($_COOKIE);
$header_token = $_COOKIE['token'];
$db = Flight::db();
$tokenCount = $db->prepare('SELECT COUNT(*) as token_count FROM tokens WHERE `token` = :token');
$tokenCount->execute([
Expand Down

0 comments on commit 7784816

Please sign in to comment.