mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
Better reponse
This commit is contained in:
parent
491a311904
commit
bda0843bba
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ export default async (ctx: Koa.Context) => {
|
||||||
if (verified) {
|
if (verified) {
|
||||||
signin(ctx, user);
|
signin(ctx, user);
|
||||||
} else {
|
} else {
|
||||||
ctx.throw(400, {
|
ctx.throw(403, {
|
||||||
error: 'invalid token'
|
error: 'invalid token'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ export default async (ctx: Koa.Context) => {
|
||||||
signin(ctx, user);
|
signin(ctx, user);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ctx.throw(400, {
|
ctx.throw(403, {
|
||||||
error: 'incorrect password'
|
error: 'incorrect password'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue