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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-25 15:01:26 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-25 15:01:26 +0400
commit4f962132c938b83dfdd9290698d748c225883e88 (patch)
treeed41cddf39eadfd842167fe90530755b6ef62b9a /plugins
parent2974847d3189042753b8a2705783b3ae1d887e35 (diff)
Fix omission in last commit.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Login/Login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Login/Login.php b/plugins/Login/Login.php
index 653b5bfb60..5d89c58b68 100644
--- a/plugins/Login/Login.php
+++ b/plugins/Login/Login.php
@@ -116,7 +116,7 @@ class Login extends \Piwik\Plugin
$authCookieExpiry = $rememberMe ? time() + Config::getInstance()->General['login_cookie_expire'] : 0;
$authCookiePath = Config::getInstance()->General['login_cookie_path'];
$cookie = new Cookie($authCookieName, $authCookieExpiry, $authCookiePath);
- if (!$authResult->isValid()) {
+ if (!$authResult->wasAuthenticationSuccessful()) {
$cookie->delete();
throw new Exception(Piwik_Translate('Login_LoginPasswordNotCorrect'));
}