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.js file error messages #38

Open
mineshmshah opened this issue Feb 12, 2018 · 0 comments
Open

Auth.js file error messages #38

mineshmshah opened this issue Feb 12, 2018 · 0 comments
Labels

Comments

@mineshmshah
Copy link

In server/controllers/auth.js I have got a few suggestions to improve the code:

  • The error message res.status(422).send({ error: "Email is in use. Please log in" }); could have a clearer message of whats going on. "The email address already exists on the system. Please log in using those credentials" or something of that sort.
  • There is a console log at the end that doesnt console log anything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants