When something is "too obvious", do the obvious! Let the two points be and . If that line has equation ax+ by+ c= 0, then the equation must satisfy and .
Those are the same as and . As long as you can solve those equations for a and b, the line exists (and is unique). Under what conditions can you not solve those equations? Treat that case separately.