linnovate/mean — pull request #521 by ReedD (2014-05-22 16:05:05+00:00)
Title: User Auth Refactor

Public:
- Wrapped auth http requests into it's own service
- Improved login and register templates error handling to utilize bootstrap form errors
- Removed interceptor in exchange for a better one that remembers failed 401 requests and retries them after authorization has been confirmed.

Server:
- Changed `/loggedin` to respond with appropriate http codes
- Improved user validation handling by isolating it to the model only and removing controller validation. This makes error handling on the public side more consistent.
- Added plugin to improve `unique` field handling by responding with proper validation errors. Also improves error handling consistency.

Tests:
- All tests relating to the above mentioned have been updated as well