Skip to content

Commit

Permalink
Issue 138. Fix login failure auto-login
Browse files Browse the repository at this point in the history
If you have BROWSERID_CREATE_USER = False, then try to log in with a valid
account on Persona, but not on the site, then you end up in this endless
loop of going to a page on the site and being redirected to the login
failure page immediately.

This fixes that.
  • Loading branch information
willkg committed Mar 8, 2013
1 parent 06c3d7e commit 9eb0bd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_browserid/static/browserid/browserid.js
Expand Up @@ -37,6 +37,7 @@
onlogin: function(assertion) {
// Avoid auto-login on failure.
if (loginFailed) {
navigator.id.logout();
loginFailed = false;
return;
}
Expand Down

0 comments on commit 9eb0bd3

Please sign in to comment.