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:
Diffstat (limited to 'plugins/Login/SessionInitializer.php')
-rw-r--r--plugins/Login/SessionInitializer.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/Login/SessionInitializer.php b/plugins/Login/SessionInitializer.php
index 72013d2b8c..2caca89aff 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);
@@ -131,6 +134,13 @@ class SessionInitializer
*/
protected function doAuthenticateSession(AuthInterface $auth)
{
+ Piwik::postEvent(
+ 'Login.authenticate',
+ array(
+ $auth->getLogin(),
+ )
+ );
+
return $auth->authenticate();
}