stravid/slotcars — pull request #136 by DominikGuzei (2012-04-19 13:22:35+00:00)
Title: Feature/login

Adds ajax login with simplest error handling / forwarding to the "profile" widget on success.

The client side `User` model has the method `signIn` that takes a hash with user credentials and two callbacks (success / error) that can be called to sign in a user. Currently this only works when no user is logged in, since the server throws an error when a logged in user tries to log in again.

Things not handled with this pull request:

* Reloading the page after successful login does not work as expected -> the login form etc. is displayed again although the user is already logged in at the server.

* Username login is not possible at the moment -> just email works

These things will be implemented in their own pull request