angular-app/angular-app — pull request #42 by petebacondarwin (2012-10-01 13:53:53+00:00)
Title: Client auth

I think this is stable enough - and independent of everything else - to merge it in.

Login returns info about the current user - this should be filtered so that we are not returning the password etc.

To handle the situation where we refresh the page but the session still holds, the service requests the current user from the server when it is instantiated.

There are a few issues around the UI, such as we need to create a directive to show the login form.
Also I am not sure what to do when we log out. Currently the app redirects to the root.

Next step will be to introduce the authorization side of things and also to consider client side security - for instance, explicitly requesting the user to login when they go to the admin page. Currently, as this doesn't access the DB, we don't trigger a login form.