Skip to content
Snippets Groups Projects
Verified Commit 5741eeb6 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Move password inequality error to the password_repeat field.

parent 72c5503a
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,6 @@ class RegisterForm(forms.Form): ...@@ -59,6 +59,6 @@ class RegisterForm(forms.Form):
password = self.cleaned_data.get('password') password = self.cleaned_data.get('password')
password_repeat = self.cleaned_data.get('password_repeat') password_repeat = self.cleaned_data.get('password_repeat')
if password and password != password_repeat: if password and password != password_repeat:
raise forms.ValidationError(_('Passwörter stimmen nicht überein!')) self.add_error('password_repeat', _('Passwörter stimmen nicht überein!'))
super(RegisterForm, self).clean() super(RegisterForm, self).clean()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment