From 3038396b5ff8919d6b367d3dfacd0d1012f9b961 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 31 Jul 2012 22:29:07 +0000 Subject: [PATCH] Fix the update password request form to *not* give an error for existing accounts ,:-) - Legacy-Id: 4742 --- ietf/ietfauth/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ietf/ietfauth/forms.py b/ietf/ietfauth/forms.py index 4479888ce..071b7d5eb 100644 --- a/ietf/ietfauth/forms.py +++ b/ietf/ietfauth/forms.py @@ -72,6 +72,10 @@ class RecoverPasswordForm(RegistrationForm): } send_mail(self.request, to_email, from_email, subject, 'registration/password_reset_email.txt', context) + def clean_email(self): + email = self.cleaned_data.get('email', '') + return email + class PasswordForm(forms.Form):