pricem/ESP-Website — comment on commit f2919007c9ee3b5e1f21a03d8a2917d8296bb384
File:  line 0
By pricem:

Good question. I thought so too. I had to modify our auth middleware to insert the appropriate cookies on the response (which wasn't necessary before Ajax login).

However, our Dojo-based Javascript code to detect Ajax form submissions isn't quite working. When you load a page, this code (in ajax_tools.js) puts an event handler on the form submission so that when you type in a username/password and hit enter, an Ajax request is sent instead of a normal one. This (and the Ajax response updating the login box) went fine. However, the event handler isn't properly updated after the response comes back, leading to unexpected behavior when logging in again after a failed attempt. I would like to fix these issues and probably switch to jQuery, but I don't feel like that's in scope for the first release. I'll check again to see if there is a quick fix in the next week, and if there is, I'll apply it directly to the main branch in order to re-enable Ajax login.

You can see the code for this in its current state in my ajax-login-update branch.