Opened 7 years ago

Closed 7 years ago

#19446 closed Bug (duplicate)

django.contrib.auth.views.login doesn't check for test-cookie properly

Reported by: mo_ttds@… Owned by: nobody
Component: contrib.auth Version: 1.4
Severity: Normal Keywords: auth login test_cookie
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: 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.

Change History (1)

comment:1 Changed 7 years ago by Claude Paroz

Resolution: duplicate
Status: newclosed

Related to #15198. Let's fix this on that ticket.

Note: See TracTickets for help on using tickets.
Back to Top