strongloop/loopback-example-user-management

Handle signup errors?

Closed this issue · 3 comments

This is a corollary issue to my previous one - by simply posting to the /api/users route in the example errors are not handled at all (unlike login where we have an express route that handles it and calls user.login). This is what you get when you make an error at signup:

image

I don't do any validation in the whole example to keep things simple. I will add this one to the road map for a future update. For now, see http://docs.strongloop.com/display/LB/Validating+model+data

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.