Fixed small bug in parts.auth.formfields.AuthenticationForm

git-svn-id: http://code.djangoproject.com/svn/django/trunk@521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-16 23:16:55 +00:00
parent 659ab9846e
commit 7d022cd48f
1 changed files with 1 additions and 1 deletions

View File

@ -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):