django.contrib.auth.views.login doesn't check for test-cookie properly
|Reported by:||mo_ttds@…||Owned by:||nobody|
|Severity:||Normal||Keywords:||auth login test_cookie|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The django.contrib.auth.views.login expected to pass the request object to the AuthenticationForm in which the Cookie would be tested with test_cookie. it sends the request object in GET calls to the form but not in the POST calls. adding the request as the first positional argument to the AuthenticationForm in POST calls will fix this bug.
Thank you so much.