No confession which is tendered in evidence on any criminal proceeding shall be received which has been induced by any threat or promise by some person in authority, and every confession made after any such threat or promise shall be deemed to have been induced thereby unless the contrary be shown.