Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: no more translation from postCreateUser hook to UserCreatedEvent…
… anymore, as event is already emitted in user manager

Signed-off-by: Tobias Assmann <[email protected]>
  • Loading branch information
Tobias Assmann authored and backportbot[bot] committed Nov 6, 2020
commit ed46c5c94aba3573622982d3f93455b741e25519
4 changes: 0 additions & 4 deletions lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,6 @@ public function __construct($webRoot, \OC\Config $config) {
$userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) {
/** @var $user \OC\User\User */
\OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]);

/** @var IEventDispatcher $dispatcher */
$dispatcher = $this->query(IEventDispatcher::class);
$dispatcher->dispatchTyped(new UserCreatedEvent($user, $password));
});
$userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) {
/** @var $user \OC\User\User */
Expand Down