From c3f4f3a8e91072f3a3b05c84de84eb9053e88507 Mon Sep 17 00:00:00 2001 From: Maxim Kochurov Date: Tue, 22 Feb 2022 15:06:56 +0000 Subject: [PATCH 01/15] add fields to form --- templates/base.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/templates/base.html b/templates/base.html index b3c254cd..f8f4b2e5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -185,6 +185,23 @@ +
+ Optional Keys +
+ + +
+
+ + +
+
+
+ Optional Keys +
+ + +
+
+ + +
+
-
- Optional Keys -
- - -
-
- - -
-
-
- Optional Keys -
- - -
-
- - -
-
+
+ + +
+
+ + +
` From 465a8c0b6546b36c0164d59108e53a108e1ae824 Mon Sep 17 00:00:00 2001 From: Maxim Kochurov Date: Tue, 22 Feb 2022 18:36:33 +0000 Subject: [PATCH 08/15] Revert "visualize security" This reverts commit e2b4997e87b4bea60282bc4d4271bcda1789e4b4. --- custom/js/helper.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/custom/js/helper.js b/custom/js/helper.js index 3a48eeb8..6fe8847e 100644 --- a/custom/js/helper.js +++ b/custom/js/helper.js @@ -67,8 +67,6 @@ function renderClientList(data) { + allocatedIpsHtml + `Allowed IPs` + allowedIpsHtml - + ` - ${obj.Client.private_key ? 'Private Key stored (insecure)' : 'No Private key'}` +` ` From 6e252c7a1d0c0b0394543ddbdac6d0b703684e16 Mon Sep 17 00:00:00 2001 From: Maxim Kochurov Date: Wed, 23 Feb 2022 00:10:12 +0300 Subject: [PATCH 09/15] Update base.html --- templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 5d0d0a61..20ccf804 100644 --- a/templates/base.html +++ b/templates/base.html @@ -192,7 +192,7 @@ name="client_public_key" placeholder="Autogenerated">
- + name="client_public_key" placeholder="Autogenerated (insecure)">
-
- - -
-
- - -
+
+ Public and Preshared Keys +
+ + +
+
+ + +
+
- QR code + QR code not available From 0c91c3bf8a241e30d232234e794e750235f9adbd Mon Sep 17 00:00:00 2001 From: Maxim Kochurov Date: Sun, 13 Mar 2022 13:51:50 +0000 Subject: [PATCH 14/15] use button disable --- custom/js/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/js/helper.js b/custom/js/helper.js index 6fe8847e..dd4b4974 100644 --- a/custom/js/helper.js +++ b/custom/js/helper.js @@ -31,7 +31,7 @@ function renderClientList(data) {
+ data-clientname="${obj.Client.name}" ${obj.QRCode != "" ? '' : ' disabled'}>Scan
- QR code not available + QR code