diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-19 19:18:00 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-27 09:56:12 +0100 |
commit | 1a886b1472cad1fb04e8073d2749514e2d97a506 (patch) | |
tree | a66f332dcf0b2a9123f40b36dc0532103b8e9461 /lib/private/Share20 | |
parent | a2046db6d011bef399f7952b2daf18734d6290ad (diff) | |
download | nextcloud-server-1a886b1472cad1fb04e8073d2749514e2d97a506.tar.gz nextcloud-server-1a886b1472cad1fb04e8073d2749514e2d97a506.zip |
Add typed events for password_policy
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index d9809fd128a..210dc7772c0 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -55,6 +55,7 @@ use OCP\IUser; use OCP\IUserManager; use OCP\L10N\IFactory; use OCP\Mail\IMailer; +use OCP\Security\Events\ValidatePasswordPolicyEvent; use OCP\Security\IHasher; use OCP\Security\ISecureRandom; use OCP\Share; @@ -191,8 +192,7 @@ class Manager implements IManager { // Let others verify the password try { - $event = new GenericEvent($password); - $this->eventDispatcher->dispatch('OCP\PasswordPolicy::validate', $event); + $this->eventDispatcher->dispatch(new ValidatePasswordPolicyEvent($password)); } catch (HintException $e) { throw new \Exception($e->getHint()); } |