changeset 4428:3c306481aebb

usermanagement: encodeURIComponent for saving user
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 18 Sep 2019 16:21:06 +0200
parents b195bc79e3e8
children 1cb570c69b63
files client/src/store/usermanagement.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/store/usermanagement.js	Wed Sep 18 16:19:59 2019 +0200
+++ b/client/src/store/usermanagement.js	Wed Sep 18 16:21:06 2019 +0200
@@ -114,7 +114,7 @@
       const { path, user } = data;
       if (user.isNew) {
         return new Promise((resolve, reject) => {
-          HTTP.post("/users", user, {
+          HTTP.post("/users/$" + encodeURIComponent(`${name}`), {
             headers: { "X-Gemma-Auth": localStorage.getItem("token") }
           })
             .then(response => {