Skip to content

Commit e395912

Browse files
blizzzbackportbot-nextcloud[bot]
authored andcommitted
allow use of rememberme cookies for IApacheAuth backends
- e.g. enables it for SAML backend Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
1 parent 3638e65 commit e395912

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/legacy/OC_User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
179179
$userSession->setLoginName($uid);
180180
$request = OC::$server->getRequest();
181181
$userSession->createSessionToken($request, $uid, $uid);
182+
$userSession->createRememberMeToken($userSession->getUser());
182183
// setup the filesystem
183184
OC_Util::setupFS($uid);
184185
// first call the post_login hooks, the login-process needs to be

0 commit comments

Comments
 (0)