Madhusudan.C.S <madhusudancs@gmail.com> [Tue, 18 Jan 2011 14:37:06 +0530] rev 457
Handle all cases of login.
Firstly refactor the code to move all the post login mechanisms to a
function of its own.
Then add support to redirect the user if the login was attempted from
logout page.
Finally if the post response we got contains html, it is not a valid
JSON, which means the login failed. In this case catch the exception
and show the login error.
Madhusudan.C.S <madhusudancs@gmail.com> [Tue, 18 Jan 2011 14:34:26 +0530] rev 456
CSS Properties to render login form error.
Madhusudan.C.S <madhusudancs@gmail.com> [Tue, 18 Jan 2011 14:33:54 +0530] rev 455
Redirect the login to home page if the login is made from logout page.
Madhusudan.C.S <madhusudancs@gmail.com> [Tue, 18 Jan 2011 01:47:55 +0530] rev 454
Move LOGIN_REDIRECT_URL to local settings since it differs based on URLs on the local settings.