diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-10-16 10:33:05 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-10-16 10:33:05 +0900 |
| commit | 0162eaf826d0fe452aee8fde90547791211e2ae3 (patch) | |
| tree | b03d59b28c4c35489f04f091e23004c7c057b283 /src | |
| parent | Add some API tests (diff) | |
| download | sharkey-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.ts | 5 |
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') { |