login view should accept a form class
|Reported by:||steph||Owned by:||nobody|
|Severity:||Keywords:||contrib auth login form override|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
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).
Change History (5)
comment:2 Changed 8 years ago by
|Triage Stage:||Unreviewed → Accepted|