improve email
This commit is contained in:
		
							parent
							
								
									34b86bc7a3
								
							
						
					
					
						commit
						5e1963d11f
					
				@ -45,7 +45,8 @@ module.exports.authenticate = function (opts) {
 | 
				
			|||||||
      , html: "You tried connecting with '" + auth.hostname + "' for the first time. Confirm to continue connecting:<br>"
 | 
					      , html: "You tried connecting with '" + auth.hostname + "' for the first time. Confirm to continue connecting:<br>"
 | 
				
			||||||
          + '<br>'
 | 
					          + '<br>'
 | 
				
			||||||
          + '          <a href="https://www.telebit.cloud/login/?magic=' + id + '">Confirm Device</a><br>'
 | 
					          + '          <a href="https://www.telebit.cloud/login/?magic=' + id + '">Confirm Device</a><br>'
 | 
				
			||||||
          + '          https://www.telebit.cloud/login/?magic=' + id + '<br>'
 | 
					          + '<br>'
 | 
				
			||||||
 | 
					          + '          <small>or copy and paste this link:<br>https://www.telebit.cloud/login/?magic=' + id + '</small><br>'
 | 
				
			||||||
          + '<br>'
 | 
					          + '<br>'
 | 
				
			||||||
          + "(" + auth.os_arch + " " + auth.os_platform + " " + auth.os_release + ")<br>"
 | 
					          + "(" + auth.os_arch + " " + auth.os_platform + " " + auth.os_release + ")<br>"
 | 
				
			||||||
          + '<br>'
 | 
					          + '<br>'
 | 
				
			||||||
@ -67,7 +68,7 @@ module.exports.authenticate = function (opts) {
 | 
				
			|||||||
          var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
 | 
					          var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
 | 
				
			||||||
          err.code = 'E_LOGIN_TIMEOUT';
 | 
					          err.code = 'E_LOGIN_TIMEOUT';
 | 
				
			||||||
          reject();
 | 
					          reject();
 | 
				
			||||||
        }, 300 * 1000);
 | 
					        }, 2 * 60 * 60 * 1000);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        function authorize() {
 | 
					        function authorize() {
 | 
				
			||||||
          console.log("mighty auth'n ranger!");
 | 
					          console.log("mighty auth'n ranger!");
 | 
				
			||||||
@ -129,10 +130,10 @@ app.use('/login', function (req, res) {
 | 
				
			|||||||
        + 'https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',')
 | 
					        + 'https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',')
 | 
				
			||||||
      + '" /></head>'
 | 
					      + '" /></head>'
 | 
				
			||||||
      + '<body>'
 | 
					      + '<body>'
 | 
				
			||||||
      + '<h1>Redirecting to your new domain...</h1>'
 | 
					      + '<h1>Give us about 30 seconds...R</h1>'
 | 
				
			||||||
      + '<a href="https://' + tokenData.domains[0] + '">'
 | 
					      + 'We\'re initializing our connection, redirecting you to your device at <a href="https://' + tokenData.domains[0] + '">'
 | 
				
			||||||
        + tokenData.domains[0]
 | 
					        + tokenData.domains[0]
 | 
				
			||||||
      + '</a>'
 | 
					      + '</a>, which will then take a few seconds to initialize as it gets your https certificates for peer-to-peer, end-to-end encryption'
 | 
				
			||||||
      + '<br>'
 | 
					      + '<br>'
 | 
				
			||||||
      + '<br>'
 | 
					      + '<br>'
 | 
				
			||||||
      + '<small><pre><code>' + JSON.stringify(tokenData, null, 2) + '</code></pre></small>'
 | 
					      + '<small><pre><code>' + JSON.stringify(tokenData, null, 2) + '</code></pre></small>'
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user