Commit 8e1cbec2 authored by Mark Harding's avatar Mark Harding

(fix): logged out pages with new signed uris

parent 9251d5cf
No related merge requests found
Pipeline #82601696 waiting for manual action with stages
in 11 minutes and 40 seconds
......@@ -43,7 +43,7 @@ class SignedUri
//->setId((string) $uri)
->setExpiration($expires)
->set('uri', (string) $uri)
->set('user_guid', (string) Session::getLoggedInUser()->getGuid())
->set('user_guid', Session::isLoggedIn() ? (string) Session::getLoggedInUser()->getGuid() : null)
->sign(new Sha256, $this->config->get('sessions')['private_key'])
->getToken();
$signedUri = $uri->withQuery("jwtsig=$token");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment