Ticket #17236: patch.diff
File patch.diff, 592 bytes (added by , 13 years ago) |
---|
-
django/contrib/auth/__init__.py
diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py index 141cac7..9a7b205 100644
a b def authenticate(**credentials): 55 55 def login(request, user): 56 56 """ 57 57 Persist a user id and a backend in the request. This way a user doesn't 58 have to reauthenticate on every request. 58 have to reauthenticate on every request. Note that when logging in session, 59 data set during the anonymous session is retained. 59 60 """ 60 61 if user is None: 61 62 user = request.user