summaryrefslogtreecommitdiffstats
path: root/forum/utils/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils/forms.py')
-rwxr-xr-xforum/utils/forms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/forum/utils/forms.py b/forum/utils/forms.py
index c54056ca..c8305c7c 100755
--- a/forum/utils/forms.py
+++ b/forum/utils/forms.py
@@ -133,6 +133,10 @@ class SetPasswordForm(forms.Form):
error_messages={'required':_('please, retype your password'),
'nomatch':_('sorry, entered passwords did not match, please try again')},
)
+
+ def __init__(self, data=None, user=None, *args, **kwargs):
+ super(SetPasswordForm, self).__init__(data, *args, **kwargs)
+
def clean_password2(self):
"""
Validates that the two password inputs match.