From c7819dc02807539f63f09fb37d04208af27a1fa9 Mon Sep 17 00:00:00 2001 From: didyouexpectthat Date: Fri, 12 Jan 2018 18:47:45 -0800 Subject: [PATCH] Remove patch 0002 due to build failures with new UI --- ...atic-retrieval-of-authtoken-from-CGI.patch | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 debian/patches/0002-Allow-automatic-retrieval-of-authtoken-from-CGI.patch diff --git a/debian/patches/0002-Allow-automatic-retrieval-of-authtoken-from-CGI.patch b/debian/patches/0002-Allow-automatic-retrieval-of-authtoken-from-CGI.patch deleted file mode 100644 index 104c72f..0000000 --- a/debian/patches/0002-Allow-automatic-retrieval-of-authtoken-from-CGI.patch +++ /dev/null @@ -1,27 +0,0 @@ -From: NAStools -Date: Tue, 29 Nov 2016 17:41:16 -0800 -Subject: Allow automatic retrieval of authtoken from CGI - ---- - ext/installfiles/mac/ui/main.js | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) - -diff --git a/ext/installfiles/mac/ui/main.js b/ext/installfiles/mac/ui/main.js -index a164712..08d716f 100644 ---- a/ext/installfiles/mac/ui/main.js -+++ b/ext/installfiles/mac/ui/main.js -@@ -42,7 +42,13 @@ function getUrlParameter(parameter) - - var ztAuthToken = getUrlParameter('authToken'); - if ((!ztAuthToken)||(ztAuthToken.length <= 0)) { -- ztAuthToken = prompt('No authToken specified in URL. Enter token from\nauthtoken.secret to authorize.'); -+ xmlhttp = new XMLHttpRequest(); -+ xmlhttp.open("GET", "/apps/nastools-zerotier-one/cgi/authtoken", false); -+ xmlhttp.send(); -+ ztAuthToken = xmlhttp.responseText; -+ if ((!ztAuthToken)||(ztAuthToken.length <= 0)) { -+ ztAuthToken = prompt('No authToken specified in URL. Enter token from\nauthtoken.secret to authorize.'); -+ } - } - - React.render(