django.contrib.auth.views.login(...) doesn't accept a form argument
|Reported by:||hgezim||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is my first ticket, so please don't eat me!
I wanted my users to be able to login using their email and password, not the username.
I created a ModelForm that exposed the User's (model) email and password. However, I found out that django.contrib.auth.views.login(...) doesn't accept a form argument.
I think for use cases like this it would be useful to accept a form argument and allow the form to determine what it means to be valid or not.