diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 21:11:11 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 21:11:11 -0500 |
commit | 88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (patch) | |
tree | e823c8e13e9ffba115c8e1f5a05a514cac5322df /app/Auth/ReverseProxy.php | |
parent | 0a14c8d5e5538e487dd6b012771f72aea6f4d5a6 (diff) |
Add more subscribers
Diffstat (limited to 'app/Auth/ReverseProxy.php')
-rw-r--r-- | app/Auth/ReverseProxy.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/Auth/ReverseProxy.php b/app/Auth/ReverseProxy.php index 23e71a22..9d766a5b 100644 --- a/app/Auth/ReverseProxy.php +++ b/app/Auth/ReverseProxy.php @@ -2,7 +2,7 @@ namespace Auth; -use Core\Request; +use Event\AuthEvent; /** * ReverseProxy backend @@ -37,16 +37,8 @@ class ReverseProxy extends Base $user = $this->user->getByUsername($login); } - // Create the user session $this->user->updateSession($user); - - // Update login history - $this->lastLogin->create( - self::AUTH_NAME, - $user['id'], - Request::getIpAddress(), - Request::getUserAgent() - ); + $this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id'])); return true; } |