[Piwik-svn] r396 - in trunk: modules/API plugins/UsersManager

svnmaster at piwik.org svnmaster at piwik.org
Sat Mar 22 01:09:17 CET 2008


Author: matt
Date: 2008-03-22 01:09:15 +0100 (Sat, 22 Mar 2008)
New Revision: 396

Modified:
   trunk/modules/API/Proxy.php
   trunk/plugins/UsersManager/API.php
Log:
- small update to getTokenAuth method in UsersManager/API.php

Modified: trunk/modules/API/Proxy.php
===================================================================
--- trunk/modules/API/Proxy.php	2008-03-21 23:35:59 UTC (rev 395)
+++ trunk/modules/API/Proxy.php	2008-03-22 00:09:15 UTC (rev 396)
@@ -170,7 +170,8 @@
 			'access' => 'view',
 			'idSite' => '1',
 			'userLogin' => 'test',
-			'password' => 'passwordExample',
+			'password' => 'passwordExample',
+			'passwordMd5ied' => 'passwordExample',
 			'email' => 'test at example.org',
 		
 			'siteName' => 'new example website',

Modified: trunk/plugins/UsersManager/API.php
===================================================================
--- trunk/plugins/UsersManager/API.php	2008-03-21 23:35:59 UTC (rev 395)
+++ trunk/plugins/UsersManager/API.php	2008-03-22 00:09:15 UTC (rev 396)
@@ -515,12 +515,13 @@
 	
 	/**
 	 * Generates a unique MD5 for the given login & previously 'md5'ied password
+	 * 
 	 * @param string Login
 	 * @param string Result of the md5 hash of the real password
 	 */
-	static public function getTokenAuth($userLogin, $password)
+	static public function getTokenAuth($userLogin, $passwordMd5ied)
 	{
-		return md5($userLogin . $password );
+		return md5($userLogin . $passwordMd5ied );
 	}
 		
 	/**



More information about the Piwik-svn mailing list