Code

Ticket #3393: 3393.diff

File 3393.diff, 624 bytes (added by ubernostrum, 7 years ago)

Simpler patch

Line 
1Index: django/contrib/auth/views.py
2===================================================================
3--- django/contrib/auth/views.py        (revision 6473)
4+++ django/contrib/auth/views.py        (working copy)
5@@ -11,7 +11,7 @@
6 
7 def login(request, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME):
8     "Displays the login form and handles the login action."
9-    manipulator = AuthenticationForm(request)
10+    manipulator = AuthenticationForm()
11     redirect_to = request.REQUEST.get(redirect_field_name, '')
12     if request.POST:
13         errors = manipulator.get_validation_errors(request.POST)