Skip to content

Commit

Permalink
Fixed #1682 added the uuid to the creation of the user (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored and mbarto committed Apr 5, 2017
1 parent 90c7e22 commit 4a95c8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/client/api/GeoStoreDAO.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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 = {}) {
Expand Down

0 comments on commit 4a95c8f

Please sign in to comment.