]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow use of rememberme cookies for IApacheAuth backends 32679/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 25 May 2022 11:09:06 +0000 (13:09 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 31 May 2022 21:59:28 +0000 (21:59 +0000)
- e.g. enables it for SAML backend

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/legacy/OC_User.php

index bc47359dafc84ad9aa76dfb2f52c69c8e6e9519e..b7547be5e82b71f671741150c9ebbc2294aeaa06 100644 (file)
@@ -179,6 +179,7 @@ class OC_User {
                                $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