mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Fix #238
This commit is contained in:
parent
25af7982c9
commit
7b42c0b64a
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue