Skip to content

Commit

Permalink
Merge pull request #51 from nextcloud/fix/noid/slave-login-remember-s…
Browse files Browse the repository at this point in the history
…ession-token

Fix session token creation "remember" parameter
  • Loading branch information
Julien Veyssier authored Nov 29, 2021
2 parents d46337a + 54ef7c0 commit 40a64b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Controller/SlaveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 40a64b5

Please sign in to comment.