summaryrefslogtreecommitdiff
path: root/app/Auth/RememberMe.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-27 21:11:11 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-27 21:11:11 -0500
commit88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (patch)
treee823c8e13e9ffba115c8e1f5a05a514cac5322df /app/Auth/RememberMe.php
parent0a14c8d5e5538e487dd6b012771f72aea6f4d5a6 (diff)
Add more subscribers
Diffstat (limited to 'app/Auth/RememberMe.php')
-rw-r--r--app/Auth/RememberMe.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php
index cb8a9b44..9f2bb13a 100644
--- a/app/Auth/RememberMe.php
+++ b/app/Auth/RememberMe.php
@@ -3,6 +3,7 @@
namespace Auth;
use Core\Request;
+use Event\AuthEvent;
use Core\Security;
/**
@@ -103,12 +104,9 @@ class RememberMe extends Base
$this->user->updateSession($this->user->getById($record['user_id']));
$this->acl->isRememberMe(true);
- // Update last login infos
- $this->lastLogin->create(
- self::AUTH_NAME,
- $this->acl->getUserId(),
- Request::getIpAddress(),
- Request::getUserAgent()
+ $this->container['dispatcher']->dispatch(
+ 'auth.success',
+ new AuthEvent(self::AUTH_NAME, $this->acl->getUserId())
);
return true;