diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py
index 633baa5..f387e6c 100644
a
|
b
|
def login(request, user):
|
70 | 70 | if user is None: |
71 | 71 | user = request.user |
72 | 72 | # 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) |
74 | 73 | |
75 | 74 | if SESSION_KEY in request.session: |
76 | 75 | if request.session[SESSION_KEY] != user.id: |
… |
… |
def login(request, user):
|
85 | 84 | if hasattr(request, 'user'): |
86 | 85 | request.user = user |
87 | 86 | |
| 87 | user_logged_in.send(sender=user.__class__, request=request, user=user) |
| 88 | |
88 | 89 | def logout(request): |
89 | 90 | """ |
90 | 91 | Removes the authenticated user's ID from the request and flushes their |