don't look at cookies if bearer token was ok
This commit is contained in:
parent
77892c5d92
commit
64e6460f22
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
$my_user = User::by_session($page->get_cookie("user"), $page->get_cookie("session"));
|
||||||
}
|
}
|
||||||
if (is_null($my_user)) {
|
if (is_null($my_user)) {
|
||||||
|
|
Reference in a new issue