Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2016-10-18 15:10:06 +0300
committersgiehl <stefan@piwik.org>2016-10-30 15:37:37 +0300
commit4aa783c3c7ec79112fda3576abb28008234fe053 (patch)
treedcbd4ddb39949ab50d947d59ef2548f8e2bcc5bf /plugins/Login/SessionInitializer.php
parenteb816d95b791edc6c38f480a5cfd197c33c8cd74 (diff)
add events when a login fails or someone logs out
Diffstat (limited to 'plugins/Login/SessionInitializer.php')
-rw-r--r--plugins/Login/SessionInitializer.php3
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);