No member of the municipal council who shall have been recalled as hereinafter provided, or who shall have resigned from office while recall proceedings were pending against him, shall be appointed to any office in the municipal government within two years after such recall or resignation.