diff --git a/web/client/api/GeoStoreDAO.js b/web/client/api/GeoStoreDAO.js index 91fb28a956..5228fe7f7b 100644 --- a/web/client/api/GeoStoreDAO.js +++ b/web/client/api/GeoStoreDAO.js @@ -8,7 +8,7 @@ const axios = require('../libs/ajax'); const _ = require('lodash'); const assign = require('object-assign'); - +const uuidv1 = require('uuid/v1'); const ConfigUtils = require('../utils/ConfigUtils'); const {findIndex} = require('lodash'); @@ -219,6 +219,8 @@ var Api = { if (postUser.newPassword) { postUser.password = postUser.newPassword; } + // uuid is time-based + postUser.attribute = {name: "uuid", value: uuidv1()}; return axios.post(url, {User: postUser}, this.addBaseUrl(parseOptions(options))).then(function(response) {return response.data; }); }, deleteUser: function(id, options = {}) {