diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-06-27 10:46:39 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-06-27 14:05:27 +0200 |
commit | d4989c80379d4cac71ae76ec8df79090f2e4c25f (patch) | |
tree | 9b08815b7829691764427846596737eb5f5af708 /lib | |
parent | 630e4b1b463c773e4a23556672fbd90af6176cab (diff) | |
download | nextcloud-server-d4989c80379d4cac71ae76ec8df79090f2e4c25f.tar.gz nextcloud-server-d4989c80379d4cac71ae76ec8df79090f2e4c25f.zip |
remove old hook, no longer needed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index b337c3c7108..478643e939b 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -145,25 +145,13 @@ class Manager implements IManager { return; } + // Let others verify the password try { $event = new GenericEvent($password); $this->eventDispatcher->dispatch('OCP\PasswordPolicy::validate', $event); } catch (HintException $e) { throw new \Exception($e->getHint()); } - - // Let others verify the password - $accepted = true; - $message = ''; - \OCP\Util::emitHook('\OC\Share', 'verifyPassword', [ - 'password' => $password, - 'accepted' => &$accepted, - 'message' => &$message - ]); - - if (!$accepted) { - throw new \Exception($message); - } } /** |