aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-11-19 16:33:19 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-11 19:20:11 +0100
commit46adb3eced0386b97540947beb8c305efdc15175 (patch)
tree7b0f3045faef414b5198764995227b99699cefcd /lib/private
parent730442cd8fbe305b0b136bb7a5251a39d24af0c9 (diff)
downloadnextcloud-server-46adb3eced0386b97540947beb8c305efdc15175.tar.gz
nextcloud-server-46adb3eced0386b97540947beb8c305efdc15175.zip
replace session implementation if it changes at runtime
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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);
}
/**