Commits

Anonymous committed 2370249

That isn't actually necessary anymore

  • Participants
  • Parent commits 1987d9b

Comments (0)

Files changed (1)

File registration/forms.py

         Validates that the two password inputs match.
         
         """
-        if 'password1' in self.cleaned_data and 'password2' in self.cleaned_data:
-            if self.cleaned_data['password1'] == self.cleaned_data['password2']:
-                return self.cleaned_data['password2']
-            raise forms.ValidationError(_(u'You must type the same password each time'))
+        if self.cleaned_data['password1'] == self.cleaned_data['password2']:
+            return self.cleaned_data['password2']
+        raise forms.ValidationError(_(u'You must type the same password each time'))
     
     def save(self, profile_callback=None):
         """