diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-17 17:35:14 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-21 11:30:00 +0100 |
commit | 6f4cb12be2d026c45237359e2b0eea2266b86bdf (patch) | |
tree | a8832d88f2f4a7c47ed3411bb90023c0168e28c0 /core/Application.php | |
parent | 53c8391e9691ac9eb92adf5b80436f5065944a1f (diff) | |
download | nextcloud-server-6f4cb12be2d026c45237359e2b0eea2266b86bdf.tar.gz nextcloud-server-6f4cb12be2d026c45237359e2b0eea2266b86bdf.zip |
Add identity proof
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 11 |
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() + ); + }); } } |