lijurpillai / grocery

0 stars 0 forks source link

Invalid password is get accepted in Add User API #2

Open danishvm opened 10 years ago

danishvm commented 10 years ago

when we try to type "................." in the password field it get accepted

JSON

{"email":"wwww@dfdfd.comf","password":".....","phone":"4244"}

Result Response

{ "type": "success", "text": "customuserAdded", "data": { "id": "52cbf1ece4b06658a45bd7f9", "email": "wwww@dfdfd.comf", "password": ".....", "phone": "4244", "enabled": true, "isVerified": true, "accountNonExpired": true, "accountNonLocked": true } }

Expected Result

{ "type": "error", "text": "510", "data": "Field error in object 'customerDetails' on field 'password' }