Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UsersManager API calls lead to incorrect error messages #11138

Closed
c-prompt opened this issue Jan 3, 2017 · 2 comments
Closed

UsersManager API calls lead to incorrect error messages #11138

c-prompt opened this issue Jan 3, 2017 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@c-prompt
Copy link

c-prompt commented Jan 3, 2017

On both Piwik versions 2.17.1 and 3.0.0, the following API call leads to an error message "Please specify a value for 'email'."

index.php?module=API&method=UsersManager.addUser&userLogin=testme&password=!@#Testme123&email=testme@gmail.com&alias=testme&format=PHP&token_auth=token_goes_here

Moving the &password=!@#Testme123 to the end of the API call leads to an error message "The password length must be greater than 6 characters."

@mattab
Copy link
Member

mattab commented Jan 3, 2017

You need to URL encode each parameter, including the password parameter.

@mattab mattab closed this as completed Jan 3, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jan 3, 2017
@c-prompt
Copy link
Author

c-prompt commented Jan 3, 2017

My mistake - thanks for catching that @mattab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants