Add more subscribers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user