Cal. Gov't Code § 36502
(a) A person is not eligible to hold office as councilmember, city clerk, or city treasurer unless he or she is at the time of assuming the office an elector of the city, and was a registered voter of the city at the time nomination papers are issued to the candidate as provided for in Section 10227 of the Elections Code.
If, during his or her term of office, he or she moves his or her place of residence outside of the city limits or ceases to be an elector of the city, his or her office shall immediately become vacant.