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:
parent
659ab9846e
commit
7d022cd48f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue