aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Authentication/LoginCredentials/Store.php9
-rw-r--r--lib/private/Server.php3
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/private/Authentication/LoginCredentials/Store.php b/lib/private/Authentication/LoginCredentials/Store.php
index ea4c9fdd0c5..17749c63b3d 100644
--- a/lib/private/Authentication/LoginCredentials/Store.php
+++ b/lib/private/Authentication/LoginCredentials/Store.php
@@ -57,6 +57,15 @@ class Store implements IStore {
}
/**
+ * Replace the session implementation
+ *
+ * @param ISession $session
+ */
+ public function setSession(ISession $session) {
+ $this->session = $session;
+ }
+
+ /**
* @since 9.2
*
* @return ICredentials the login credentials of the current user
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 7c2d00e283d..45ed9d5e3bc 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1004,7 +1004,8 @@ class Server extends ServerContainer implements IServerContainer {
*/
public function setSession(\OCP\ISession $session) {
$this->query(SessionStorage::class)->setSession($session);
- return $this->query('UserSession')->setSession($session);
+ $this->query('UserSession')->setSession($session);
+ $this->query(Store::class)->setSession($session);
}
/**