mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Update signin.ts
This commit is contained in:
parent
afb0a358d9
commit
4fa61c054a
1 changed files with 2 additions and 3 deletions
|
@ -12,9 +12,8 @@ export default async (ctx: Koa.Context) => {
|
|||
ctx.set('Access-Control-Allow-Credentials', 'true');
|
||||
|
||||
const body = ctx.request.body as any;
|
||||
// See: https://github.com/syuilo/misskey/issues/2384
|
||||
const username = body['username'] || body['x'];
|
||||
const password = body['password'] || body['y'];
|
||||
const username = body['username'];
|
||||
const password = body['password'];
|
||||
const token = body['token'];
|
||||
|
||||
if (typeof username != 'string') {
|
||||
|
|
Loading…
Reference in a new issue