buddycloud/webclient — pull request #7 by rodrigods (2012-09-13 12:42:26+00:00)
Title: Registration

The code added is basically one more view (RegisterSidebar.js) and a method at UserCredentials.js.

The method POSTs to the /account endpoint, and if the registration succeeds, it triggers an event called 'registrationSucceed', which makes the RegisterSidebar to reload the page content and UserCredentials to save the username and password. If the registration doesn't succeed, a 'registrationError' event is triggered and a alarm with the right message is raised.

Currently, it is missing the tests.