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

Commit

Permalink
pass user to afterLogin event
Browse files Browse the repository at this point in the history
  • Loading branch information
eymen-elkum authored Jul 18, 2016
1 parent 42791e0 commit 94dfc35
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 94dfc35

Please sign in to comment.