Ticket #11178: django_fix_contrib.auth.views.login.diff

File django_fix_contrib.auth.views.login.diff, 665 bytes (added by Florian Reinhard <florian.reinhard@…>, 15 years ago)

patch for contrib/auth/views.py

  • contrib/auth/views.py

     
    1818    "Displays the login form and handles the login action."
    1919    redirect_to = request.REQUEST.get(redirect_field_name, '')
    2020    if request.method == "POST":
    21         form = AuthenticationForm(data=request.POST)
     21        form = AuthenticationForm(request=request,data=request.POST)
    2222        if form.is_valid():
    2323            # Light security check -- make sure redirect_to isn't garbage.
    2424            if not redirect_to or '//' in redirect_to or ' ' in redirect_to:
Back to Top