This commit is contained in:
syuilo
2018-04-13 11:44:39 +09:00
parent 22d2f2051c
commit e2e7babee0
5 changed files with 14 additions and 10 deletions

View File

@@ -60,14 +60,14 @@ export default async (ctx: Koa.Context) => {
});
if (verified) {
signin(ctx, user, false);
signin(ctx, user);
} else {
ctx.throw(400, {
error: 'invalid token'
});
}
} else {
signin(ctx, user, false);
signin(ctx, user);
}
} else {
ctx.throw(400, {