Adjust test to new user creation api
This commit is contained in:
parent
42fced747f
commit
ba064f6499
@ -215,7 +215,7 @@ Cloudron.prototype.update = function (toVersion) {
|
||||
};
|
||||
|
||||
Cloudron.prototype.addUser = function (username, email) {
|
||||
var res = request.post(this._origin + '/api/v1/users').query({ access_token: this._credentials.accessToken }).send({ username: username, email: email }).end();
|
||||
var res = request.post(this._origin + '/api/v1/users').query({ access_token: this._credentials.accessToken }).send({ username: username, email: email, invite: false }).end();
|
||||
common.verifyResponse2(res, 'Could not add user');
|
||||
|
||||
return res.body.userInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user