diff options
author | Tobias Assmann <tobias.assmann@ecsec.de> | 2020-11-04 09:11:20 +0100 |
---|---|---|
committer | Tobias Assmann <tobias.assmann@ecsec.de> | 2020-11-04 09:18:35 +0100 |
commit | ded2acc9668787b5440bf14fb2082faeb793aea9 (patch) | |
tree | 890fea0d06f69878ff9f719c86049f9ef80b6dd1 /lib/private/Server.php | |
parent | 8eb0db5078944f8d0bea8b641f69437acf59e9ab (diff) | |
download | nextcloud-server-ded2acc9668787b5440bf14fb2082faeb793aea9.tar.gz nextcloud-server-ded2acc9668787b5440bf14fb2082faeb793aea9.zip |
fix: no more translation from postCreateUser hook to UserCreatedEvent anymore, as event is already emitted in user manager
Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 8e2452b2f30..203c59772b3 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -540,10 +540,6 @@ class Server extends ServerContainer implements IServerContainer { $userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) { /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]); - - /** @var IEventDispatcher $dispatcher */ - $dispatcher = $this->get(IEventDispatcher::class); - $dispatcher->dispatchTyped(new UserCreatedEvent($user, $password)); }); $userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) { /** @var \OC\User\User $user */ |