diff --git a/lib/user-methods.js b/lib/user-methods.js index 7fcc10ed..7296474b 100644 --- a/lib/user-methods.js +++ b/lib/user-methods.js @@ -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) {