[Piwik-hackers] Two questions about Piwik API

Daniel Blanco daniel.blanco at irisalerts.com
Thu Jun 19 16:22:17 CEST 2008


HI all!
I've noticed the API call for *UsersManager.getTokenAuth (userLogin, 
password)* has changed recently.
Before, the password parameter was *passwordMd5ied*, or something like 
that, but now it goes without encryption. Why this change? (just curious)

On the other hand, I've realized when you use the 
*UsersManager.setUserAccess (userLogin, access, idSites = '') *call, if 
you don't provide a value for idSites,
Piwik gives the user the specified acces to ALL sites. Is this 
intentional? I had a mistake in my code, so the variable with the 
idSites was NULL, and all the users I've been
created have acces to ALL sites that existed at the time they were 
created. It would be nice to have a keyword for this, like *idSites=all* 
(for example), so you don't do this
accidentally, but maintain the ability to apply to every sites.

Any hel p would me much apreciated.

Thanks!

Dani


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.piwik.org/pipermail/piwik-hackers/attachments/20080619/6fd94b62/attachment.htm 


More information about the Piwik-hackers mailing list