Skip to content

Commit

Permalink
don't look at cookies if bearer token was ok
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 17, 2023
1 parent 77892c5 commit 64e6460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ function _get_user(): User
}
}
}
if ($page->get_cookie("user") && $page->get_cookie("session")) {
if (is_null($my_user) && $page->get_cookie("user") && $page->get_cookie("session")) {
$my_user = User::by_session($page->get_cookie("user"), $page->get_cookie("session"));
}
if (is_null($my_user)) {
Expand Down

0 comments on commit 64e6460

Please sign in to comment.