From 85523e4f151a7031a4782d75fd379a41b83a68d1 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Nov 2021 03:13:50 +0200 Subject: [PATCH] auto check --- playground-client/src/components/doclive/AdhocView.vue | 8 ++++---- playground-client/src/components/doclive/runLlo.vue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/playground-client/src/components/doclive/AdhocView.vue b/playground-client/src/components/doclive/AdhocView.vue index 4b11367..6819855 100644 --- a/playground-client/src/components/doclive/AdhocView.vue +++ b/playground-client/src/components/doclive/AdhocView.vue @@ -666,10 +666,10 @@ export default { created() { //LEFOS TOKEN ==== - //this.token = new URL(location.href).searchParams.get("token"); - this.token = new URL( - "https://api-client.swarmlab.io:8088/?token=59e732744987bc63a98a4f909d50984371b44543" - ).searchParams.get("token"); + this.token = new URL(location.href).searchParams.get("token"); + //this.token = new URL( + // "https://api-client.swarmlab.io:8088/?token=59e732744987bc63a98a4f909d50984371b44543" + //).searchParams.get("token"); this.swarmlabname = new URL(location.href).searchParams.get("pipelinename"); diff --git a/playground-client/src/components/doclive/runLlo.vue b/playground-client/src/components/doclive/runLlo.vue index 7eee668..b75afa5 100644 --- a/playground-client/src/components/doclive/runLlo.vue +++ b/playground-client/src/components/doclive/runLlo.vue @@ -619,12 +619,12 @@ export default { */ created() { - //var logintoken = new URL(location.href).searchParams.get("token"); + var logintoken = new URL(location.href).searchParams.get("token"); // ΕΔΩ ΠΡΠΕΕΙ ΝΑ ΑΛΛΑΧΤΕΙ ΤΟ URL ΩΣΤΕ ΝΑ ΚΑΝΕΙ AUTHENTICATION - var logintoken = new URL( - "https://api-client.swarmlab.io:8088/?token=b0dddc676d2491d8e98632d8afc636b6a28f1234" - ).searchParams.get("token"); + //var logintoken = new URL( + // "https://api-client.swarmlab.io:8088/?token=b0dddc676d2491d8e98632d8afc636b6a28f1234" + //).searchParams.get("token"); this.logintoken = logintoken; // === We get the user + check for the token if exists this.checktoken(this.logintoken);