0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Updated response code for re-sending verification

This commit is contained in:
Michael Barrett 2024-10-09 14:17:31 +01:00 committed by Kevin Ansfield
parent 916b2aef9d
commit 8a86db4ea5
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ function SessionMiddleware({sessionService}) {
try {
await sessionService.sendAuthCodeToUser(req, res);
res.sendStatus(201);
res.sendStatus(200);
} catch (err) {
next(err);
}

View file

@ -154,7 +154,7 @@ describe('Session Service', function () {
should.equal(sendAuthCodeToUserStub.callCount, 1);
should.equal(nextStub.callCount, 0);
should.equal(sendStatusStub.callCount, 1);
should.equal(sendStatusStub.args[0][0], 201);
should.equal(sendStatusStub.args[0][0], 200);
});
it('calls next with an error if sendAuthCodeToUser fails', async function () {