No need to create a token on password reset

This commit is contained in:
Girish Ramakrishnan
2018-04-30 14:30:41 -07:00
parent 6e19153350
commit c84f984205
2 changed files with 2 additions and 18 deletions

View File

@@ -1455,11 +1455,9 @@ describe('Password', function () {
it('succeeds', function (done) {
var scope = nock(config.adminOrigin())
.filteringPath(function (path) {
path = path.replace(/accessToken=[^&]*/, 'accessToken=token');
path = path.replace(/expiresAt=[^&]*/, 'expiresAt=1234');
return path;
})
.get('/?accessToken=token&expiresAt=1234').reply(200, {});
.get('/').reply(200, {});
superagent.post(SERVER_URL + '/api/v1/session/password/reset')
.send({ password: 'ASF23$%somepassword', resetToken: USER_0.resetToken })