Skip to content

Commit

Permalink
allow use of rememberme cookies for IApacheAuth backends
Browse files Browse the repository at this point in the history
- e.g. enables it for SAML backend

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed May 25, 2022
1 parent f9e72a4 commit a4a9e76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/legacy/OC_User.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
$userSession->setLoginName($uid);
$request = OC::$server->getRequest();
$userSession->createSessionToken($request, $uid, $uid);
$userSession->createRememberMeToken($userSession->getUser());
// setup the filesystem
OC_Util::setupFS($uid);
// first call the post_login hooks, the login-process needs to be
Expand Down

0 comments on commit a4a9e76

Please sign in to comment.