summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication
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/Authentication
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/Authentication')
-rw-r--r--lib/private/Authentication/LoginCredentials/Store.php9
1 files changed, 9 insertions, 0 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