Prior to Trump it was mostly fringe candidates like Storm Thurmund (1948), George Wallace (1968), David Duke (1988, 1992), Pat Buchanan (1992, 1996).
In terms of major candidates, there are some questionable endorsements for candidates like Nixon and Reagan. But you have to go all the way back to Woodrow Wilson to find a president who was openly happy about receiving those endorsements.