From 5e1963d11fb9e83da54dc32ef1eda820f8f5dae8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 9 Jun 2018 20:46:08 +0000 Subject: [PATCH] improve email --- lib/extensions.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/extensions.js b/lib/extensions.js index 521b1cd..f4e0c11 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -45,7 +45,8 @@ module.exports.authenticate = function (opts) { , html: "You tried connecting with '" + auth.hostname + "' for the first time. Confirm to continue connecting:
" + '
' + '       Confirm Device
' - + '       https://www.telebit.cloud/login/?magic=' + id + '
' + + '
' + + '       or copy and paste this link:
https://www.telebit.cloud/login/?magic=' + id + '

' + '
' + "(" + auth.os_arch + " " + auth.os_platform + " " + auth.os_release + ")
" + '
' @@ -67,7 +68,7 @@ module.exports.authenticate = function (opts) { var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes"); err.code = 'E_LOGIN_TIMEOUT'; reject(); - }, 300 * 1000); + }, 2 * 60 * 60 * 1000); function authorize() { console.log("mighty auth'n ranger!"); @@ -129,10 +130,10 @@ app.use('/login', function (req, res) { + 'https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',') + '" />' + '' - + '

Redirecting to your new domain...

' - + '' + + '

Give us about 30 seconds...R

' + + 'We\'re initializing our connection, redirecting you to your device at
' + tokenData.domains[0] - + '' + + ', which will then take a few seconds to initialize as it gets your https certificates for peer-to-peer, end-to-end encryption' + '
' + '
' + '
' + JSON.stringify(tokenData, null, 2) + '
'