Browse Source

auto check

master
zeus 3 years ago
parent
commit
85523e4f15
  1. 8
      playground-client/src/components/doclive/AdhocView.vue
  2. 8
      playground-client/src/components/doclive/runLlo.vue

8
playground-client/src/components/doclive/AdhocView.vue

@ -666,10 +666,10 @@ export default {
created() { created() {
//LEFOS TOKEN ==== //LEFOS TOKEN ====
//this.token = new URL(location.href).searchParams.get("token"); this.token = new URL(location.href).searchParams.get("token");
this.token = new URL( //this.token = new URL(
"https://api-client.swarmlab.io:8088/?token=59e732744987bc63a98a4f909d50984371b44543" // "https://api-client.swarmlab.io:8088/?token=59e732744987bc63a98a4f909d50984371b44543"
).searchParams.get("token"); //).searchParams.get("token");
this.swarmlabname = new URL(location.href).searchParams.get("pipelinename"); this.swarmlabname = new URL(location.href).searchParams.get("pipelinename");

8
playground-client/src/components/doclive/runLlo.vue

@ -619,12 +619,12 @@ export default {
*/ */
created() { created() {
//var logintoken = new URL(location.href).searchParams.get("token"); var logintoken = new URL(location.href).searchParams.get("token");
// ΕΔΩ ΠΡΠΕΕΙ ΝΑ ΑΛΛΑΧΤΕΙ ΤΟ URL ΩΣΤΕ ΝΑ ΚΑΝΕΙ AUTHENTICATION // ΕΔΩ ΠΡΠΕΕΙ ΝΑ ΑΛΛΑΧΤΕΙ ΤΟ URL ΩΣΤΕ ΝΑ ΚΑΝΕΙ AUTHENTICATION
var logintoken = new URL( //var logintoken = new URL(
"https://api-client.swarmlab.io:8088/?token=b0dddc676d2491d8e98632d8afc636b6a28f1234" // "https://api-client.swarmlab.io:8088/?token=b0dddc676d2491d8e98632d8afc636b6a28f1234"
).searchParams.get("token"); //).searchParams.get("token");
this.logintoken = logintoken; this.logintoken = logintoken;
// === We get the user + check for the token if exists // === We get the user + check for the token if exists
this.checktoken(this.logintoken); this.checktoken(this.logintoken);

Loading…
Cancel
Save