Ticket #2730: forms.diff
File forms.diff, 782 bytes (added by , 18 years ago) |
---|
-
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 acount. Are you sure you've registered?"84 raise validators.ValidationError, _("That e-mail address doesn't have an associated user acount. 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"