diff --git a/lib/Controller/SlaveController.php b/lib/Controller/SlaveController.php index 831494e..0dda9c0 100644 --- a/lib/Controller/SlaveController.php +++ b/lib/Controller/SlaveController.php @@ -25,6 +25,7 @@ use Firebase\JWT\ExpiredException; use Firebase\JWT\JWT; +use OC\Authentication\Token\IToken; use OCA\GlobalSiteSelector\GlobalSiteSelector; use OCA\GlobalSiteSelector\TokenHandler; use OCA\GlobalSiteSelector\UserBackend; @@ -171,7 +172,7 @@ public function autoLogin($jwt) { return new RedirectResponse($masterUrl); } - $this->userSession->createSessionToken($this->request, $uid, $uid, null, 0); + $this->userSession->createSessionToken($this->request, $uid, $uid, null, IToken::REMEMBER); $home = $this->urlGenerator->getAbsoluteURL($target); return new RedirectResponse($home);