userInfo is gone

This commit is contained in:
Girish Ramakrishnan 2016-04-06 12:27:11 -07:00
parent 37ff12b8c2
commit 66d68c3df3
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ 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, invite: false }).end();
common.verifyResponse2xx(res, 'Could not add user');
return res.body.userInfo;
return res.body;
};
Cloudron.prototype.resetPassword = function (resetToken, password) {