LibreHealthIO / lh-ehr-fhir-api

FHIR API to LibreEHR Package for Laravel
MIT License
12 stars 6 forks source link

Signup fails to save user #29

Closed kchapple closed 8 years ago

kchapple commented 8 years ago

To reproduce:

Try to signup with an email, but missing other required field to cause failure.

Fix user input error and POST to signup again.

Expected: Signup succes.

Actual: Signup error saying email is already taken. {"accountRegistered":0,"status":"FAIL","message":"Fail to save user","Errors":{"email":["The email has already been taken."]}}

Leo24 commented 8 years ago

https://github.com/LibreEHR/fhir/pull/31

Add validation rule for mobile number to prevent Signup error saying email is already taken