Fix the update password request form to *not* give an error for existing accounts ,:-)
- Legacy-Id: 4742
This commit is contained in:
parent
469bfa11a3
commit
3038396b5f
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue