Right now, if an error comes back from the database while attempting to insert or find a user, we just send that entire error back through the API, and then the login/register components will just print the error to the console. We should improve this by interpreting the error on the server, and send back a more concise error including some "display text" which could get printed in an error box to let the user know why their login/registration has failed.
Right now, if an error comes back from the database while attempting to insert or find a user, we just send that entire error back through the API, and then the login/register components will just print the error to the console. We should improve this by interpreting the error on the server, and send back a more concise error including some "display text" which could get printed in an error box to let the user know why their login/registration has failed.