Text this: A Cauchy-type generalization of Flett's theorem