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 ea8e959 commit c9739fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Middleware/mvc/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class Login extends Controller
{
public function before(): void
{
if (isset($_COOKIE['token'])) {
dd("ijj");
if (array_key_exists('token', $_COOKIE)) {
dd("Token exists: " . $_COOKIE['token']);
} else {
dd("ijj");
dd("Token not set.");
}
}
}

0 comments on commit c9739fa

Please sign in to comment.