Cookies validation not being used in AuthenticationForm

Create issue
Issue #801 new
Former user created an issue

I'm running Sathcmo 0.8.1 on top of Django 1.0.2 and cookies verification (check if cookies are enabled) didn't seem to work.

In the AuthenticationForm class (contrib/auth/forms.py) the condition on self.request never returns True as the request object is always None. This is because AuthenticationForm objects are constructed (in accounts/views.py) without giving it the request object as argument.

Adding the request object fixed the issue and disabling cookies now returns a validation error as expected.

Please find the patch attached.

Reported by andre.miras

Comments (1)

  1. Log in to comment