summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-10-16 10:33:05 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-10-16 10:33:05 +0900
commit0162eaf826d0fe452aee8fde90547791211e2ae3 (patch)
treeb03d59b28c4c35489f04f091e23004c7c057b283 /src
parentAdd some API tests (diff)
downloadsharkey-0162eaf826d0fe452aee8fde90547791211e2ae3.tar.gz
sharkey-0162eaf826d0fe452aee8fde90547791211e2ae3.tar.bz2
sharkey-0162eaf826d0fe452aee8fde90547791211e2ae3.zip
Update signin.ts
Diffstat (limited to 'src')
-rw-r--r--src/server/api/private/signin.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/api/private/signin.ts b/src/server/api/private/signin.ts
index 0e44c2ddd6..0a0f9ae6f9 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') {