def clean_email(self):
        try:
            self.user = User.objects.get(email=self.cleaned_data['email'], is_active=True)
        except User.DoesNotExist:
            raise forms.ValidationError("The email address provided does not match an active account.")
Verify that the email address is valid.
dataset/ETHPy150Open 2buntu/2buntu-blog/twobuntu/accounts/forms.py/ResetForm.clean_email