He won reelection in 1864.
There was no amendment at that time barring him from running for multiple terms.
Thanks for the correction.