From c981544bad1732dab51edadcb463d74997c354ea Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 12:39:42 -0600 Subject: [PATCH] bugfix --- bin/telebitd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/telebitd.js b/bin/telebitd.js index ab4783b..fd446c2 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -200,7 +200,7 @@ function serveControls() { } // TODO check for message from remote about email - if (/\btelebit\.cloud\b/i.test(conf.relay) && state.config.email && !state.token) { + if (/\btelebit\.cloud\b/i.test(state.config.relay) && state.config.email && !state.token) { res.statusCode = 200; res.end('{"success":true,"code":"AWAIT_AUTH","message":"Check your email. You must verify your email address to activate this device."}'); } else {