(self)
return password2
Clean password2.
Clean password2.
Clean password2 .
def clean_password2(self):
        """Clean password2."""
        # Check that the two password entries match
        password1 = self.cleaned_data.get("password1")
        password2 = self.cleaned_data.get("password2")
        if password1 and password2 and password1 != password2:
            raise forms.ValidationError("Passwords don't match")
        return password2
def clean_password2 ( self ) : # Check that the two password entries match password1 = self . cleaned_data . get ( "password1" ) password2 = self . cleaned_data . get ( "password2" ) if password1 and password2 and password1 != password2 : raise forms . ValidationError ( "Passwords don't match" ) return password2