diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-20 15:12:52 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-20 18:43:09 +0100 |
commit | 535000aac6ea0579e8f7468e4b7f6b822975ed86 (patch) | |
tree | f704d51f913e8c80613ce13aa94cf74c8adb5eea /lib/private/User/Session.php | |
parent | 4ddea4bdfbc36e13f7b397a1d881ddff2d364419 (diff) | |
download | nextcloud-server-535000aac6ea0579e8f7468e4b7f6b822975ed86.tar.gz nextcloud-server-535000aac6ea0579e8f7468e4b7f6b822975ed86.zip |
Make the post login event public
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/User/Session.php')
-rw-r--r-- | lib/private/User/Session.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 842d19d8d54..3b0231aea03 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -61,6 +61,7 @@ use OCP\IUserSession; use OCP\Lockdown\ILockdownManager; use OCP\Security\ISecureRandom; use OCP\Session\Exceptions\SessionNotAvailableException; +use OCP\User\Events\PostLoginEvent; use OCP\Util; use Symfony\Component\EventDispatcher\GenericEvent; @@ -398,13 +399,11 @@ class Session implements IUserSession, Emitter { $firstTimeLogin = $user->updateLastLoginTimestamp(); } - $postLoginEvent = new OC\User\Events\PostLoginEvent( + $this->dispatcher->dispatchTyped(new PostLoginEvent( $user, $loginDetails['password'], $isToken - ); - $this->dispatcher->dispatch(OC\User\Events\PostLoginEvent::class, $postLoginEvent); - + )); $this->manager->emit('\OC\User', 'postLogin', [ $user, $loginDetails['password'], |