From eef08eca54658f04da89ed31e38626cfb73757de Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 7 Jun 2018 01:42:10 -0600 Subject: [PATCH] notify user to check email --- bin/telebit.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bin/telebit.js b/bin/telebit.js index 3e683f2..5f7efba 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -115,8 +115,21 @@ function connectTunnel() { if (!state.config.sortingHat) { state.config.sortingHat = path.resolve(__dirname, '..', 'lib/sorting-hat.js'); } - // TODO sortingHat.print(); + // TODO sortingHat.print(); ? + if (state.config.email && !state.token) { + console.info(); + console.info('=================================='); + console.info('= HEY! LISTEN! ='); + console.info('=================================='); + console.info('= ='); + console.info('= 1. Open your email ='); + console.info('= 2. Click the magic login link ='); + console.info('= 3. Check back here for deets ='); + console.info('= ='); + console.info('=================================='); + console.info(); + } // TODO Check undefined vs false for greenlock config var tun = remote.connect({ relay: state.config.relay