diff options
Diffstat (limited to 'modules/Auth.php')
-rw-r--r-- | modules/Auth.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/modules/Auth.php b/modules/Auth.php index e84ed8b7b4..907f98a609 100644 --- a/modules/Auth.php +++ b/modules/Auth.php @@ -1,14 +1,14 @@ -<?php
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
- * @version $Id$
- *
- * @package Piwik
- */
-
+<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik + */ + /** * Authentication object. * Should be reviewed and refactor to allow simple plugin overwrite @@ -33,8 +33,8 @@ class Piwik_Auth extends Zend_Auth_Adapter_DbTable $rootLogin = Zend_Registry::get('config')->superuser->login; $rootPassword = Zend_Registry::get('config')->superuser->password; $rootToken = Piwik_UsersManager_API::getTokenAuth($rootLogin,$rootPassword); -
- // echo $rootToken;
+ + // echo $rootToken; // echo "<br>". $this->_credential;exit; if($this->_identity == $rootLogin && $this->_credential == $rootToken) @@ -52,7 +52,7 @@ class Piwik_Auth extends Zend_Auth_Adapter_DbTable // of this class in the zend_registry and it should work if(is_null($this->_identity)) { - $authenticated = false;
+ $authenticated = false; if($this->_credential === $rootToken) { |