Ticket #17869: 17869.diff

File 17869.diff, 678 bytes (added by Christopher Medrela, 13 years ago)
  • django/contrib/auth/middleware.py

    diff --git a/django/contrib/auth/middleware.py b/django/contrib/auth/middleware.py
    index df616a9..bdb5e85 100644
    a b class RemoteUserMiddleware(object):  
    5050            # If specified header doesn't exist then return (leaving
    5151            # request.user set to AnonymousUser by the
    5252            # AuthenticationMiddleware).
     53            if request.user.is_authenticated():
     54                auth.logout(request)
    5355            return
    5456        # If the user is already authenticated and that user is the user we are
    5557        # getting passed in the headers, then the correct user is already
Back to Top