Call navigator.id.logout() when removing browserid_user email
authorFrancois Marier <francois@debian.org>
Mon, 23 Jul 2012 07:13:53 +0000 (19:13 +1200)
committerFrancois Marier <francois@debian.org>
Tue, 24 Jul 2012 06:21:01 +0000 (18:21 +1200)
commit0c597856c35c4138613ace28770bf8a1b27756c4
tree5d69483ca258dc8fbcea2ec6f6075d3fc10e791e
parentf2b8772a0ac7766e7f4443c4c999e12914a2e940
Call navigator.id.logout() when removing browserid_user email

To ensure that the BrowserID internal session matches reality, we
need to silently log the user out of BrowserID when the email that
is being removed matches the one that BrowserID thinks was used to
login in this session.

Doing so means that Libravatar switches to a non-BrowserID session.

Took this opportunity to simplify the common "silent logout" code
with the "delete account" operation.
libravatar/account/views.py
libravatar/templates/account/profile.html
static/js/libravatar.js