userInfo is gone
This commit is contained in:
parent
37ff12b8c2
commit
66d68c3df3
@ -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();
|
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');
|
common.verifyResponse2xx(res, 'Could not add user');
|
||||||
|
|
||||||
return res.body.userInfo;
|
return res.body;
|
||||||
};
|
};
|
||||||
|
|
||||||
Cloudron.prototype.resetPassword = function (resetToken, password) {
|
Cloudron.prototype.resetPassword = function (resetToken, password) {
|
||||||
|
Loading…
Reference in New Issue
Block a user