Mercurial > gemma
diff client/src/store/usermanagement.js @ 4426:a769e14f4baf
fix typo, encodeURIComponent only for username
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 18 Sep 2019 16:11:43 +0200 |
parents | 2261462ddcdc |
children | 3c306481aebb |
line wrap: on
line diff
--- 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 => {