Opened 17 years ago
Closed 17 years ago
#10342 closed (duplicate)
login view should accept a form class
| Reported by: | steph | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.auth | Version: | dev |
| Severity: | Keywords: | contrib auth login form override | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | yes |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I would like to override the default form (AuthenticationForm) in django.contrib.auth.views.login.
This is needed if an alternative auth backend is used, which needs extra fields for logging in (e.g. captcha).
The attached patch allows to override the form class by adding a "form_class" argument to the view (defaults to AuthenticationForm).
Attachments (1)
Change History (5)
by , 17 years ago
| Attachment: | r9897-login-form-override.patch added |
|---|
comment:1 by , 17 years ago
| Component: | Contrib apps → Authentication |
|---|
comment:2 by , 17 years ago
| Needs documentation: | set |
|---|---|
| Needs tests: | set |
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 17 years ago
| milestone: | post-1.0 |
|---|
Note:
See TracTickets
for help on using tickets.
Milestone post-1.0 deleted