Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-17 19:35:14 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 13:30:00 +0300
commit6f4cb12be2d026c45237359e2b0eea2266b86bdf (patch)
treea8832d88f2f4a7c47ed3411bb90023c0168e28c0 /core/Application.php
parent53c8391e9691ac9eb92adf5b80436f5065944a1f (diff)
Add identity proof
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/Application.php b/core/Application.php
index f68f7929e6a..545b5fe420b 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -30,7 +30,10 @@
namespace OC\Core;
+use OC\AppFramework\Utility\SimpleContainer;
+use OC\Security\IdentityProof\Manager;
use OCP\AppFramework\App;
+use OCP\Files\IAppData;
use OCP\Util;
/**
@@ -45,8 +48,14 @@ class Application extends App {
$container = $this->getContainer();
- $container->registerService('defaultMailAddress', function() {
+ $container->registerService('defaultMailAddress', function () {
return Util::getDefaultEmailAddress('lostpassword-noreply');
});
+ $container->registerService(Manager::class, function () {
+ return new Manager(
+ \OC::$server->getAppDataDir('identityproof'),
+ \OC::$server->getCrypto()
+ );
+ });
}
}