Description
We use GitHub Issues for bugs.
If you have a non-bug question, ask on Stack Overflow or Server Fault:
You may also search through existing issues before opening a new one: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
Issue Description
When attempting to signup a user with empty username and password, I think that can get error which is username and password are required. But it still created user and session.
Steps to reproduce
Post /parse/users
{ "username": "", "password": "" }
Expected Results
like this
{ "code": 201, "error": "username and password is required." }
or
{ "code": 201, "error": "username is required." }
or
{ "code": 201, "error": "password is required." }
Actual Outcome
{
"objectId": "xehXxh1MDt",
"createdAt": "2017-03-07T14:43:02.468Z",
"username": "QTt1bmB1ojpw7krJ7SaK8rBkP",
"sessionToken": "r:41e117452a9279cbddb70d434264aaac"
}
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 2.3.6
- Operating System: OSX
- Hardware: MacBook Pro (Retina, 13-inch, Early 2015)
- Localhost or remote server? Localhost
-
Database
- MongoDB version: v3.4.0
- Storage engine:
- Hardware: Same as above
- Localhost or remote server? Localhost
Logs/Trace
Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.