Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#9168 closed (duplicate)

contrib.auth login for should accept an authentication_form parameter for alternate backends

Reported by: SmileyChris Owned by: nobody
Component: contrib.auth Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

A more generic solution to #7507.

In my example, I want to use email addresses to log in with. But the current AuthenticationForm limits the username parameter to 30 characters. If the form was a parameter, the login view would be a lot more generic.

Attachments (2)

authentication_form.diff (2.2 KB) - added by SmileyChris 7 years ago.
authentication_form.2.diff (2.7 KB) - added by SmileyChris 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by SmileyChris

comment:1 Changed 7 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Smiley, that patch looks good to me, but the new link in the docs are using the old style xref, instead of the new sphinx style.

comment:2 Changed 7 years ago by julien

  • Resolution set to duplicate
  • Status changed from new to closed

The patch in #8274 also takes care of the password_change. Closing as duplicate, although I made a link to this one since the docs addition is quite useful.

Changed 7 years ago by SmileyChris

comment:3 Changed 7 years ago by SmileyChris

Docs are now newer in #8274, just use that ticket now.

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