From 0b503661af1a3eba80d3bf31a9eef69d13a5aad1 Mon Sep 17 00:00:00 2001 From: Tosuke Date: Wed, 22 Aug 2018 09:26:06 +0900 Subject: [PATCH] fix login bug(#2384) --- src/server/api/private/signin.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/api/private/signin.ts b/src/server/api/private/signin.ts index 9f26c09c45..c42fb7bd8c 100644 --- a/src/server/api/private/signin.ts +++ b/src/server/api/private/signin.ts @@ -12,8 +12,9 @@ export default async (ctx: Koa.Context) => { ctx.set('Access-Control-Allow-Credentials', 'true'); const body = ctx.request.body as any; - const username = body['username']; - const password = body['password']; + // See: https://github.com/syuilo/misskey/issues/2384 + const username = body['username'] || body['x']; + const password = body['password'] || body['y']; const token = body['token']; if (typeof username != 'string') {