# HG changeset patch # User Thomas Junk # Date 1568815903 -7200 # Node ID a769e14f4baf86717ab5b03f50ec6efb471da69c # Parent fe8c331760ae67b88f238c8992f9fe0677c30741 fix typo, encodeURIComponent only for username diff -r fe8c331760ae -r a769e14f4baf client/src/components/map/Map.vue --- a/client/src/components/map/Map.vue Wed Sep 18 16:04:01 2019 +0200 +++ b/client/src/components/map/Map.vue Wed Sep 18 16:11:43 2019 +0200 @@ -187,7 +187,7 @@ if (this.initialLoad) { this.$store.commit("map/initialLoad", false); var currentUser = this.$store.state.user.user; - HTTP.get(encodeURIComponent(`/users/${currentUser}`), { + HTTP.get("/users/" + encodeURIComponent(`${currentUser}`), { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8" diff -r fe8c331760ae -r a769e14f4baf client/src/store/usermanagement.js --- a/client/src/store/usermanagement.js Wed Sep 18 16:04:01 2019 +0200 +++ b/client/src/store/usermanagement.js Wed Sep 18 16:11:43 2019 +0200 @@ -97,7 +97,7 @@ deleteUser({ commit }, data) { const { name } = data; return new Promise((resolve, reject) => { - HTTP.delete(encodeURIComponent(`/usres/${name}`), { + HTTP.delete("/users/$" + encodeURIComponent(`${name}`), { headers: { "X-Gemma-Auth": localStorage.getItem("token") } }) .then(response => {