diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-02-22 19:24:26 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-28 23:41:35 -0300 |
commit | 1fc05ea53a6ed6053c0ceb90ad72a49ca314d57e (patch) | |
tree | 58ae3b1dc3f748f290bff88f086fa77dc286223d /apps/lookup_server_connector/appinfo | |
parent | 2a773310dc58adcd299c1f7ae37e834cbae3b027 (diff) | |
download | nextcloud-server-1fc05ea53a6ed6053c0ceb90ad72a49ca314d57e.tar.gz nextcloud-server-1fc05ea53a6ed6053c0ceb90ad72a49ca314d57e.zip |
allow admin to configure lookup server
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/lookup_server_connector/appinfo')
-rw-r--r-- | apps/lookup_server_connector/appinfo/app.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/lookup_server_connector/appinfo/app.php b/apps/lookup_server_connector/appinfo/app.php index 639eeafcf3f..a98a5de406f 100644 --- a/apps/lookup_server_connector/appinfo/app.php +++ b/apps/lookup_server_connector/appinfo/app.php @@ -28,18 +28,20 @@ $dispatcher->addListener('OC\AccountManager::userUpdated', function(\Symfony\Com \OC::$server->getAppDataDir('identityproof'), \OC::$server->getCrypto() ); + + $config = \OC::$server->getConfig(); + $lookupServer = $config->getSystemValue('lookup_server', ''); + $updateLookupServer = new \OCA\LookupServerConnector\UpdateLookupServer( new \OC\Accounts\AccountManager(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher()), - \OC::$server->getConfig(), - \OC::$server->getSecureRandom(), \OC::$server->getHTTPClientService(), - $keyManager, new \OC\Security\IdentityProof\Signer( $keyManager, new \OC\AppFramework\Utility\TimeFactory(), \OC::$server->getUserManager() ), - \OC::$server->getJobList() + \OC::$server->getJobList(), + $lookupServer ); $updateLookupServer->userUpdated($user); }); |