Cookieを使わないように
This commit is contained in:
parent
f257853906
commit
4bbb7eded3
5 changed files with 7 additions and 12 deletions
|
@ -21,6 +21,7 @@ export default function(ctx: Koa.Context, user: ILocalUser, redirect = false) {
|
|||
|
||||
ctx.redirect(config.url);
|
||||
} else {
|
||||
ctx.status = 204;
|
||||
ctx.body = { i: user.token };
|
||||
ctx.status = 200;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue