From ba064f6499d91dc8d7e7a774dd3d862b87b5eda8 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 18 Jan 2016 20:47:26 +0100 Subject: [PATCH] Adjust test to new user creation api --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index e68abe0..9999aa9 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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;