Any sale of real estate under a judgment of foreclosure entered prior to the passage and taking effect of this code hereby is declared legal and valid for all purposes, though any assignment of the mortgage foreclosed was not recorded prior to the institution of the action to foreclose, if such assignment was executed and recorded before the entry of such judgment.
1-05-04. Validation of foreclosure of mortgage by foreign executor, administrator, or guardian. If any real estate mortgage given prior to January 1, 1943, was foreclosed in any action or proceeding by a foreign executor, administrator, or guardian, such foreclosure, after six months from and after the date this code takes effect, may not be set aside by reason of the appointment of a resident executor, administrator, or guardian, or by reason of the failure of any such foreign executor, administrator, or guardian to file an authenticated copy of the person's appointment as such executor, administrator, or guardian, in the office of the clerk of the district court, or to record such copy in the office of the recorder of the county in which the action or proceeding to foreclose such mortgage was commenced, if a certified copy of such appointment heretofore has been recorded in such county, and if in the action or proceeding to foreclose such mortgage a sheriff's certificate has been issued prior to January 1, 1943.