mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 16:28:27 +09:00
Better reponse
This commit is contained in:
parent
3476be16ab
commit
75e4c8d74d
@ -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'
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user