Provide class-based login view
|Reported by:||Benoît Bryon||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As of Django 1.4, django.contrib.auth.views.login is based on an old-style functional view.
It could use a class-based view.
It would be easier to create custom login views: mainly reuse more code.
This ticket could be considered as a sub-task of #17209.