summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-21 16:38:25 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-21 16:38:25 +0200
commit99075825e37ea49800bb451a243e7d09b68a7f8d (patch)
tree55e6e3436122ba5fd032d3bd6ebfbc6873f44cdc /settings/src
parent9d121985dc2980ca9c3b4a69d807926d2424757d (diff)
downloadnextcloud-server-99075825e37ea49800bb451a243e7d09b68a7f8d.tar.gz
nextcloud-server-99075825e37ea49800bb451a243e7d09b68a7f8d.zip
changes the returned key from UserID to id, in accordance with getUserData
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/store/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/src/store/users.js b/settings/src/store/users.js
index 6d8ecff5192..261c5baee69 100644
--- a/settings/src/store/users.js
+++ b/settings/src/store/users.js
@@ -429,7 +429,7 @@ const actions = {
addUser({commit, dispatch}, { userid, password, displayName, email, groups, subadmin, quota, language }) {
return api.requireAdmin().then((response) => {
return api.post(OC.linkToOCS(`cloud/users`, 2), { userid, password, displayName, email, groups, subadmin, quota, language })
- .then((response) => dispatch('addUserData', userid || response.data.ocs.data.UserID))
+ .then((response) => dispatch('addUserData', userid || response.data.ocs.data.id))
.catch((error) => {throw error;});
}).catch((error) => {
commit('API_FAILURE', { userid, error });