Closed danishvm closed 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': }
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': }