#10166: Cookie test fails in login() view
-------------------------------------------+--------------------------------
Reporter: iakbar | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.0
Keywords: authentication, cookie, login | Stage: Unreviewed
Has_patch: 0 |
-------------------------------------------+--------------------------------
The cookie test in the django.contrib.auth.views.login() view doesn't work
as expected.
The url is set up as follows.
{{{
(r'^login/$', 'django.contrib.auth.views.login')
}}}
After disabling cookies in the browser...
1. the login view is called via a GET request and displays the login
template/form (the test cookie is set).
2. The form is posted back to the login view (the view is supposed to
check
for the test cookie and throw an error if the cookie is not found. This
check doesn't happen).
The documentation of the init method of AuthenticationForm says it
will validate that cookies are enabled only if a request is passed in
when instantiating the form. But on POST the login view doesn't pass
the request to AuthenticationForm.
--
Ticket URL: <http://code.djangoproject.com/ticket/10166>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---