According to the Presidential plan of reorganization, a provisional governor for Alabama was appointed in June 1865. A state convention met in September of the same year, and declared the ordinance of secession null and void and slavery abolished. A legislature and a governor were elected in November, and the legislature was at once recognized by President Andrew Johnson, but not by Congress, which refused to seat the delegation. Johnson ordered the army to allow the inauguration of the governor after the legislature ratified the Thirteenth Amendment in December, 1865. But the legislature's passage of Black Codes to control the freedmen who were flocking from the plantations to the towns, and its rejection of the Fourteenth Amendment to grant suffrage, intensified Congressional hostility to the Presidential plan.