Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/auth/register error response #6

Open
mmahmoodictbd opened this issue Dec 8, 2018 · 1 comment
Open

/auth/register error response #6

mmahmoodictbd opened this issue Dec 8, 2018 · 1 comment
Assignees

Comments

@mmahmoodictbd
Copy link
Member

When email already exists in the system, API throws following with HTTP status code 500:
{ "email": [ "has already been taken" ] }

Response code should be 400 bad request.
Simplified API response would help mobile app. Proposed format:
{ "validationMessage": "Email already exist, try login." }

@imtiaz-emu
Copy link
Collaborator

@mmahmoodictbd PR created. Is the login error messages are okay? Or should I change that too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants