Skip to content

Commit

Permalink
fix: empty auth cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
juneszh committed Feb 20, 2024
1 parent 7b89172 commit 69816a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Admin/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ private static function getClientAuth(): array
$return[0] = $_SERVER['PHP_AUTH_USER'];
$return[1] = $_SERVER['PHP_AUTH_PW'];
} else {
$return[0] = $_COOKIE[self::COOKIE_AUTH];
$return[1] = $_COOKIE[self::COOKIE_SESSION];
$return[0] = $_COOKIE[self::COOKIE_AUTH] ?? '';
$return[1] = $_COOKIE[self::COOKIE_SESSION] ?? '';
}

return $return;
Expand Down

0 comments on commit 69816a6

Please sign in to comment.