merged wrong side

This commit is contained in:
Kenneth Geisshirt 2017-09-13 21:11:09 +02:00
parent a1689ebde7
commit a389d0e4a2
1 changed files with 1 additions and 5 deletions

View File

@ -182,11 +182,7 @@ const staticMethods = {
adminUser(token, server) {
checkTypes(arguments, ['string', 'string']);
const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
return this.createUser(server || '', uuid, token, true);
return this._adminUser(server, token);
},
register(server, username, password, callback) {