From 0162eaf826d0fe452aee8fde90547791211e2ae3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 16 Oct 2018 10:33:05 +0900 Subject: [PATCH] Update signin.ts --- src/server/api/private/signin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/server/api/private/signin.ts b/src/server/api/private/signin.ts index 0e44c2ddd..0a0f9ae6f 100644 --- a/src/server/api/private/signin.ts +++ b/src/server/api/private/signin.ts @@ -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') {