Browse Source

replace session implementation if it changes at runtime

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/2044/head
Christoph Wurst 9 years ago
committed by Roeland Jago Douma
parent
commit
46adb3eced
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 9
      lib/private/Authentication/LoginCredentials/Store.php
  2. 3
      lib/private/Server.php

9
lib/private/Authentication/LoginCredentials/Store.php

@ -56,6 +56,15 @@ class Store implements IStore {
$this->logger = $logger;
}
/**
* Replace the session implementation
*
* @param ISession $session
*/
public function setSession(ISession $session) {
$this->session = $session;
}
/**
* @since 9.2
*

3
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);
}
/**

Loading…
Cancel
Save