Ticket #9213: auth_forms.diff
File auth_forms.diff, 683 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/forms.py
104 104 Validates that a user exists with the given e-mail address. 105 105 """ 106 106 email = self.cleaned_data["email"] 107 self.users_cache = User.objects.filter(email__iexact=email )107 self.users_cache = User.objects.filter(email__iexact=email, is_active=True) 108 108 if len(self.users_cache) == 0: 109 109 raise forms.ValidationError(_("That e-mail address doesn't have an associated user account. Are you sure you've registered?")) 110 110