Changeset 3058
- Timestamp:
- 06/01/06 23:42:10 (2 years ago)
- Files:
-
- django/trunk/django/contrib/auth/forms.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/auth/forms.py
r2809 r3058 37 37 38 38 def isValidPasswordForUser(self, field_data, all_data): 39 if self.user_cache is not None and not self.user_cache.check_password(field_data): 39 if self.user_cache is None: 40 return 41 if not self.user_cache.check_password(field_data): 40 42 self.user_cache = None 41 43 raise validators.ValidationError, _("Please enter a correct username and password. Note that both fields are case-sensitive.") 44 elif not self.user_cache.is_active: 45 raise validators.ValidationError, _("This account is inactive.") 42 46 43 47 def get_user_id(self):
