681: djblets.auth.util.internal_login has a bug

augu*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Oct. 7, 2008
What steps will reproduce the problem?
1. login as user a
2. not log out,just log in as user b again
3. then you'll see a exception about session's keys error

it cause by this:
request.session.delete_test_cookie()
should be chang to:
if request.session.test_cookie_worked():
    request.session.delete_test_cookie()
david
#1 david
Fixed in djblets SVN r11890. Thanks!
  • +Fixed