Ticket #11178: django_fix_contrib.auth.views.login.diff
File django_fix_contrib.auth.views.login.diff, 665 bytes (added by , 15 years ago) |
---|
-
contrib/auth/views.py
18 18 "Displays the login form and handles the login action." 19 19 redirect_to = request.REQUEST.get(redirect_field_name, '') 20 20 if request.method == "POST": 21 form = AuthenticationForm( data=request.POST)21 form = AuthenticationForm(request=request,data=request.POST) 22 22 if form.is_valid(): 23 23 # Light security check -- make sure redirect_to isn't garbage. 24 24 if not redirect_to or '//' in redirect_to or ' ' in redirect_to: