#15198: AuthenticationForm.clean call does not have request set ----------------------------+----------------------------------------------- Reporter: Ciantic | Owner: nobody Status: new | Milestone: Component: Authentication | Version: SVN Keywords: | Triage Stage: Unreviewed Has patch: 1 | ----------------------------+----------------------------------------------- I'm working on per site login system currently.
It is required to get the site of the request in prior to calling ``authenticate()`` so the calls to my auth backend should be either in form of: {{{ authenticate(site_id, username, password) }}} or more general: {{{ authenticate(request, username, password) }}} If I try to create own `django.contrib.auth.forms.AuthenticationForm` e.g. by subclassing, then the login view never sets the `request` attribute of auth form. So currently I have to recreate whole login view and authentication form in order to make per site login. With this simple patch I could just subclass AuthenticationForm and override the `clean()` functions call to authentication. More about my per site endeavours in [http://groups.google.com/group /django-developers/browse_thread/thread/7052c23321079295/fbf16f06fa17988c django-devs thread], and in [http://ciantic.github.com/multisited/README.html my proposal for changes to django]. -- Ticket URL: <http://code.djangoproject.com/ticket/15198> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.