There were three phases in Virginia's Reconstruction era: wartime, presidential, and congressional. Immediately after the war President Andrew Johnson recognized the Francis Harrison Pierpont government as legitimate and restored local government. The Virginia legislature passed Black Codes that severely restricted Freedmen's mobility and rights; they had only limited rights and were not considered citizens, nor could they vote. The state ratified the 13th amendment to abolish slavery and revoked the 1861 ordnance of secession. Johnson was satisfied that Reconstruction was complete.