diff options
author | sgiehl <stefan@piwik.org> | 2016-10-18 15:10:06 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2016-10-30 15:37:37 +0300 |
commit | 4aa783c3c7ec79112fda3576abb28008234fe053 (patch) | |
tree | dcbd4ddb39949ab50d947d59ef2548f8e2bcc5bf /plugins/Login/SessionInitializer.php | |
parent | eb816d95b791edc6c38f480a5cfd197c33c8cd74 (diff) |
add events when a login fails or someone logs out
Diffstat (limited to 'plugins/Login/SessionInitializer.php')
-rw-r--r-- | plugins/Login/SessionInitializer.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Login/SessionInitializer.php b/plugins/Login/SessionInitializer.php index 72013d2b8c..6d7f81617d 100644 --- a/plugins/Login/SessionInitializer.php +++ b/plugins/Login/SessionInitializer.php @@ -114,6 +114,9 @@ class SessionInitializer $authResult = $this->doAuthenticateSession($auth); if (!$authResult->wasAuthenticationSuccessful()) { + + Piwik::postEvent('Login.authenticate.failed', array($auth->getLogin())); + $this->processFailedSession($rememberMe); } else { $this->processSuccessfulSession($authResult, $rememberMe); |