Skip to content
Snippets Groups Projects
Commit a67758e5 authored by syuilo's avatar syuilo
Browse files

Fix #238

parent 89278881
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment