Better reponse

This commit is contained in:
syuilo 2018-08-21 23:56:15 +09:00
parent 491a311904
commit bda0843bba

View file

@ -63,7 +63,7 @@ export default async (ctx: Koa.Context) => {
if (verified) {
signin(ctx, user);
} else {
ctx.throw(400, {
ctx.throw(403, {
error: 'invalid token'
});
}
@ -71,7 +71,7 @@ export default async (ctx: Koa.Context) => {
signin(ctx, user);
}
} else {
ctx.throw(400, {
ctx.throw(403, {
error: 'incorrect password'
});
}