From 7d022cd48fd4e193108c1b4785d3bdc2fe0e22e8 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 16 Aug 2005 23:16:55 +0000 Subject: [PATCH] Fixed small bug in parts.auth.formfields.AuthenticationForm git-svn-id: http://code.djangoproject.com/svn/django/trunk@521 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/parts/auth/formfields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/parts/auth/formfields.py b/django/parts/auth/formfields.py index 1ad77dbda5..7d0cea2f52 100644 --- a/django/parts/auth/formfields.py +++ b/django/parts/auth/formfields.py @@ -23,7 +23,7 @@ class AuthenticationForm(formfields.Manipulator): self.user_cache = None def hasCookiesEnabled(self, field_data, all_data): - if self.request and not self.request.test_cookie_worked(): + if self.request and not self.request.session.test_cookie_worked(): raise validators.ValidationError, "Your Web browser doesn't appear to have cookies enabled. Cookies are required for logging in." def isValidUser(self, field_data, all_data):