lijurpillai / grocery

0 stars 0 forks source link

Invalid Email is get accepted in Add User API #1

Closed danishvm closed 10 years ago

danishvm commented 10 years ago

when we try to add new user with invallid email id like "sdghj.com" it gets accepted

Json : {"email":"sdghj.com","password":"egfdgd","phone":"4244"}

Result Response

{ "type": "success", "text": "customuserAdded", "data": { "id": "52cbed71e4b06658a45bd7f6", "email": "sdghj.com", "password": "egfdgd", "phone": "4244", "enabled": true, "isVerified": true, "accountNonExpired": true, "accountNonLocked": true } }

Expected Result

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