diff --git a/src/api/private/signin.ts b/src/api/private/signin.ts index fe3b5f708..afa83e50c 100644 --- a/src/api/private/signin.ts +++ b/src/api/private/signin.ts @@ -33,7 +33,9 @@ export default async (req: express.Request, res: express.Response) => { }); if (user === null) { - res.status(404).send('user not found'); + res.status(404).send({ + error: 'user not found' + }); return; } @@ -53,7 +55,9 @@ export default async (req: express.Request, res: express.Response) => { res.sendStatus(204); } else { - res.status(400).send('incorrect password'); + res.status(400).send({ + error: 'incorrect password' + }); } // Append signin history