password reset returns 302
This commit is contained in:
parent
c1c2cdc434
commit
752faa7378
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user