hasadna / openmuni-budgets

A web app and web API for storing, accessing, visualizing and comparing budgetary data from Israeli municipalities.
http://openmuni.org.il/
BSD 3-Clause "New" or "Revised" License
15 stars 28 forks source link

Fix user login implementation to be via AJAX, and return a user object #385

Closed pwalsh closed 10 years ago

pwalsh commented 10 years ago

cc: @ydaniv

Currently, after we login a user, we reload:

https://github.com/hasadna/openmuni-budgets/blob/develop/openbudgets/commons/static/js/base.js#L111

We need to change this so that there is no reload, and that the ajax response returns a user object for the client.

Here is where the response is defined:

https://github.com/hasadna/openmuni-budgets/blob/develop/openbudgets/apps/accounts/views/ui.py#L174