Code

#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

Description

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.

Attachments (0)

Change History (1)

comment:1 Changed 19 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.