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:
parent
916b2aef9d
commit
8a86db4ea5
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ function SessionMiddleware({sessionService}) {
|
|||
try {
|
||||
await sessionService.sendAuthCodeToUser(req, res);
|
||||
|
||||
res.sendStatus(201);
|
||||
res.sendStatus(200);
|
||||
} catch (err) {
|
||||
next(err);
|
||||
}
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue