﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10166	Cookie test fails in login() view	iakbar	nobody	"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.
"		closed	contrib.auth	1.0		wontfix	authentication, cookie, login		Accepted	1	0	1	0	0	0
