def clean(self):
        """
        Verify that the 2 passwords fields are equal
        """
        if 'password1' in self.cleaned_data and 'password2' in self.cleaned_data:
            if self.cleaned_data['password1'] != self.cleaned_data['password2']:
                raise forms.ValidationError(_(
                    u'You must type the same password each time'))
        return self.cleaned_data
dataset/ETHPy150Open zorna/zorna/zorna/account/forms.py/ResetPasswordForm.clean/original