1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00
This commit is contained in:
syuilo 2017-03-10 06:42:57 +09:00
parent 8927888174
commit a67758e5af

View File

@ -33,7 +33,9 @@ export default async (req: express.Request, res: express.Response) => {
}); });
if (user === null) { if (user === null) {
res.status(404).send('user not found'); res.status(404).send({
error: 'user not found'
});
return; return;
} }
@ -53,7 +55,9 @@ export default async (req: express.Request, res: express.Response) => {
res.sendStatus(204); res.sendStatus(204);
} else { } else {
res.status(400).send('incorrect password'); res.status(400).send({
error: 'incorrect password'
});
} }
// Append signin history // Append signin history