password reset returns 302

This commit is contained in:
girish@cloudron.io 2016-01-27 09:44:45 -08:00
parent c1c2cdc434
commit 752faa7378
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,8 @@ Cloudron.prototype.resetPassword = function (resetToken, password) {
res = request.post(this._origin + '/api/v1/session/password/reset')
.set('cookie', sessionCookies[0])
.type('form').send({ _csrf: csrf, resetToken: resetToken, password: password, passwordRepeat: password }).end();
common.verifyResponse2xx(res, 'Could not setup password for user');
common.verifyResponse(res, 'Could not setup password for user');
assert.strictEqual(res.statusCode, 302);
};
Cloudron.prototype.backup = function () {