Ticket #10017: PasswordResetForm.patch
File PasswordResetForm.patch, 671 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/forms.py
107 107 self.users_cache = User.objects.filter(email__iexact=email) 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 return email 110 111 111 112 def save(self, domain_override=None, email_template_name='registration/password_reset_email.html', 112 113 use_https=False, token_generator=default_token_generator):