diff --git a/scipost/forms.py b/scipost/forms.py index 23de340df872d13b3322275b84b7461bdee7e44d..4421124d7260880f3133f32230e32f226d33ba4c 100644 --- a/scipost/forms.py +++ b/scipost/forms.py @@ -80,7 +80,7 @@ class RegistrationForm(forms.Form): if self.cleaned_data['password'] != self.cleaned_data['password_verif']: self.add_error('password', 'Your passwords must match') self.add_error('password_verif', 'Your passwords must match') - return self.cleaned_data.get('password', '') + return self.cleaned_data.get('password_verif', '') def clean_username(self): if User.objects.filter(username=self.cleaned_data['username']).exists():