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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-11-08 11:19:36 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-02-22 23:26:40 +0300
commite49aca0a70b82cfb7f67e593787117bfbbd0e57f (patch)
treef88f9f10eb7da2da3ba8292bc22487560a75e287 /lib/AppInfo
parent027b9e80dcec9904e3efbdfaea4fb2763265ea85 (diff)
use server's credential store
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r--lib/AppInfo/Application.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index c1c33ca53..bfd84ba0f 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -34,7 +34,6 @@ class Application extends App {
parent::__construct('mail', $urlParams);
$this->initializeAppContainer();
- $this->registerHooks();
}
public function initializeAppContainer() {
@@ -58,21 +57,4 @@ class Application extends App {
$container->registerParameter("hostname", Util::getServerHostName());
}
- public function registerHooks() {
- Util::connectHook('OC_User', 'post_login', $this, 'handleLoginHook');
- }
-
- public function handleLoginHook($params) {
- if (!isset($params['password'])) {
- return;
- }
- $password = $params['password'];
-
- $container = $this->getContainer();
- /* @var $defaultAccountManager \OCA\Mail\Service\DefaultAccount\Manager */
- $defaultAccountManager = $container->query('\OCA\Mail\Service\DefaultAccount\Manager');
-
- $defaultAccountManager->saveLoginPassword($password);
- }
-
}