Ticket #2915: password_reset.diff
File password_reset.diff, 820 bytes (added by , 18 years ago) |
---|
-
django/contrib/auth/forms.py
81 81 try: 82 82 self.user_cache = User.objects.get(email__iexact=new_data) 83 83 except User.DoesNotExist: 84 raise validators.ValidationError, _("That e-mail address doesn't have an associated user ac ount. Are you sure you've registered?")84 raise validators.ValidationError, _("That e-mail address doesn't have an associated user account. Are you sure you've registered?") 85 85 86 86 def save(self, domain_override=None, email_template_name='registration/password_reset_email.html'): 87 87 "Calculates a new password randomly and sends it to the user"