Ticket #9213: auth_forms.diff

File auth_forms.diff, 683 bytes (added by John-Scott Atlakson, 16 years ago)
  • django/contrib/auth/forms.py

     
    104104        Validates that a user exists with the given e-mail address.
    105105        """
    106106        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)
    108108        if len(self.users_cache) == 0:
    109109            raise forms.ValidationError(_("That e-mail address doesn't have an associated user account. Are you sure you've registered?"))
    110110
Back to Top