Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9168 closed (duplicate)

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

Reported by: Chris Beaven 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 Chris Beaven 8 years ago.
authentication_form.2.diff (2.7 KB) - added by Chris Beaven 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Chris Beaven

Attachment: authentication_form.diff added

comment:1 Changed 8 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

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 8 years ago by Julien Phalip

Resolution: duplicate
Status: newclosed

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 8 years ago by Chris Beaven

Attachment: authentication_form.2.diff added

comment:3 Changed 8 years ago by Chris Beaven

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

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