summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-05 22:58:30 +0100
committerGitHub <noreply@github.com>2020-11-05 22:58:30 +0100
commit0247f22c837d515458b0c1d3a34d904ce8001930 (patch)
tree07facb95969ee0279d5f58a3d75cc1859ece6b1d /lib
parent88eebf9ed6fd0233d87c01cf3a7db2f7c15aafa8 (diff)
parenta79d7c0be0d3bf560f6765d92f8490aba30a3eb9 (diff)
downloadnextcloud-server-0247f22c837d515458b0c1d3a34d904ce8001930.tar.gz
nextcloud-server-0247f22c837d515458b0c1d3a34d904ce8001930.zip
Merge pull request #23887 from ecsecta/fix_23797
Do not emit UserCreatedEvent twice
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 8e2452b2f30..4ec90574740 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -223,7 +223,6 @@ use OCP\User\Events\BeforeUserLoggedOutEvent;
use OCP\User\Events\PasswordUpdatedEvent;
use OCP\User\Events\PostLoginEvent;
use OCP\User\Events\UserChangedEvent;
-use OCP\User\Events\UserCreatedEvent;
use OCP\User\Events\UserDeletedEvent;
use OCP\User\Events\UserLoggedInEvent;
use OCP\User\Events\UserLoggedInWithCookieEvent;
@@ -540,10 +539,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 */