A marriage contracted without the consent of the father and mother, the ascendants, or the family council, in cases where such consent was necessary, may be contested only by those whose consent was required, or by the one of the two spouses who needed that consent.