Ticket #15042: 15043.diff

File 15043.diff, 832 bytes (added by lrekucki, 4 years ago)

Patch against trunk.

  • django/contrib/auth/__init__.py

    diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py
    index 633baa5..f387e6c 100644
    a b def login(request, user): 
    7070    if user is None:
    7171        user = request.user
    7272    # TODO: It would be nice to support different login methods, like signed cookies.
    73     user_logged_in.send(sender=user.__class__, request=request, user=user)
    7473
    7574    if SESSION_KEY in request.session:
    7675        if request.session[SESSION_KEY] != user.id:
    def login(request, user): 
    8584    if hasattr(request, 'user'):
    8685        request.user = user
    8786
     87    user_logged_in.send(sender=user.__class__, request=request, user=user)
     88
    8889def logout(request):
    8990    """
    9091    Removes the authenticated user's ID from the request and flushes their
Back to Top