mozilla / django-badger

django-badger is a reusable Django app for creating and awarding badges. See also badges.mozilla.org
https://github.com/mozilla/django-badger
BSD 3-Clause "New" or "Revised" License
117 stars 61 forks source link

Fix sign-in immediately after sign-out #37

Closed lmorchard closed 11 years ago

lmorchard commented 12 years ago

Attempting to sign in immediately after signing out seems broken. Currently, I redirect to a sign in page after sign out to avoid the bug. I think its that CSRF session data is destroyed on logout, thus breaking the sign in forms.

lmorchard commented 11 years ago

I think this is fixed, albeit by redirecting to the home page. In the future, it could be interesting to log out in-place without a redirect or changing the page, probably using AJAX in the header