Commit e2d188b5 by benjaoming

Remember to call parent UserCreationForm.clean - fix username not tested for…

Remember to call parent UserCreationForm.clean - fix username not tested for uniqueness in account handling
parent 5d4c5453
...@@ -445,7 +445,7 @@ class UserCreationForm(UserCreationForm): ...@@ -445,7 +445,7 @@ class UserCreationForm(UserCreationForm):
) )
def clean(self): def clean(self):
cd = self.cleaned_data cd = super(UserCreationForm, self).clean()
for fieldname in self.honeypot_fieldnames: for fieldname in self.honeypot_fieldnames:
if cd[fieldname]: raise forms.ValidationError("Thank you, non-human visitor. Please keep trying to fill in the form.") if cd[fieldname]: raise forms.ValidationError("Thank you, non-human visitor. Please keep trying to fill in the form.")
return cd return cd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment