Ticket #10017: PasswordResetForm.patch

File PasswordResetForm.patch, 671 bytes (added by Zak Johnson <zakj@…>, 16 years ago)
  • django/contrib/auth/forms.py

     
    107107        self.users_cache = User.objects.filter(email__iexact=email)
    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?"))
     110        return email
    110111
    111112    def save(self, domain_override=None, email_template_name='registration/password_reset_email.html',
    112113             use_https=False, token_generator=default_token_generator):
Back to Top