Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #37 from ayman-alkom/patch-3
Browse files Browse the repository at this point in the history
pass user to afterLogin event
  • Loading branch information
burzum authored Jul 18, 2016
2 parents 42791e0 + 94dfc35 commit 0466f77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/Component/UserToolComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ protected function _beforeLogin(EntityInterface $entity, array $options) {
* @return mixed
*/
protected function _afterLogin($user, array $options) {
$event = new Event('User.afterLogin', $this, ['options' => $options]);
$event = new Event('User.afterLogin', $this, [
'user' => $user,
'options' => $options
]);
$this->eventManager()->dispatch($event);
if ($event->isStopped()) {
return $event->result;
Expand Down

0 comments on commit 0466f77

Please sign in to comment.