merged wrong side
This commit is contained in:
parent
a1689ebde7
commit
a389d0e4a2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue