diff options
Diffstat (limited to 'app/Auth/Ldap.php')
-rw-r--r-- | app/Auth/Ldap.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php index 82307e8c..b3c998f9 100644 --- a/app/Auth/Ldap.php +++ b/app/Auth/Ldap.php @@ -2,7 +2,7 @@ namespace Auth; -use Core\Request; +use Event\AuthEvent; /** * LDAP model @@ -55,14 +55,7 @@ class Ldap extends Base // We open the 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; } |