summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-05-17 17:20:54 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-05-18 09:20:48 +0200
commit98b465a8b9c6900f12ca2efa5d51036b6ccc4b8b (patch)
tree830f5043c8178736c0b34038eb49c769f59a6b1b /lib/private/Server.php
parent765782445a24fb1b239f2a3cd5c7b239ae4f6455 (diff)
downloadnextcloud-server-98b465a8b9c6900f12ca2efa5d51036b6ccc4b8b.tar.gz
nextcloud-server-98b465a8b9c6900f12ca2efa5d51036b6ccc4b8b.zip
a single token provider suffices
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 8ece9addd3d..a4294ee2c88 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -231,15 +231,11 @@ class Server extends ServerContainer implements IServerContainer {
// might however be called when ownCloud is not yet setup.
if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
$defaultTokenProvider = $c->query('OC\Authentication\Token\DefaultTokenProvider');
- $tokenProviders = [
- $defaultTokenProvider,
- ];
} else {
$defaultTokenProvider = null;
- $tokenProviders = [];
}
- $userSession = new \OC\User\Session($manager, $session, $timeFactory, $defaultTokenProvider, $tokenProviders);
+ $userSession = new \OC\User\Session($manager, $session, $timeFactory, $defaultTokenProvider);
$userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) {
\OC_Hook::emit('OC_User', 'pre_createUser', array('run' => true, 'uid' => $uid, 'password' => $password));
});