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

Password contain # symbol not working with ParseRest API #4250

Closed
sureshkoduri opened this issue Oct 12, 2017 · 2 comments
Closed

Password contain # symbol not working with ParseRest API #4250

sureshkoduri opened this issue Oct 12, 2017 · 2 comments

Comments

@sureshkoduri
Copy link

hi
When I am trying to login using Parse Rest API, If the password contains '#'symbol getting following exception.
error: Error generating response. ParseError { code: 101, message: 'Invalid username/password.' } code=101, message=Invalid username/password.

Thanks in Advance,
Suresh

@montymxb
Copy link
Contributor

@sureshkoduri I'll double check this and let you know what I find.

@montymxb
Copy link
Contributor

@sureshkoduri looked into this and I cannot replicate the issue mentioned. You didn't post any example code, but this is what I ran personally against a local instance.

# signup new user
curl -X POST \
  -H "X-Parse-Application-Id: app-id-here" \
  -H "X-Parse-Revocable-Session: 1" \
  -H "Content-Type: application/json" \
  -d '{"username":"standarduser","password":"#simplepassword#","phone":"415-392-0202"}' \
  http://localhost:1337/parse/users

and to login...

# login
curl -X GET \
  -H "X-Parse-Application-Id: app-id-here" \
  -H "X-Parse-Revocable-Session: 1" \
  -G \
  --data-urlencode 'username=standarduser' \
  --data-urlencode 'password=#simplepassword#' \
  http://localhost:1337/parse/login

Both appear to work just fine running against parse-server 2.6.2. If you can follow up with a repeatable failure case we can look further into this. It seems more likely that the username/password combination you are using is incorrect. I'll close this for now, but if you follow up with details to show what's going on I'll open this back up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants