From 53f25400c37422d25234cca7497e9a554b87551d Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Thu, 25 May 2017 21:25:30 +0200
Subject: [PATCH] Return right form data field

---
 scipost/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scipost/forms.py b/scipost/forms.py
index 23de340df..4421124d7 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():
-- 
GitLab