diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-22 09:27:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-22 09:27:09 +0900 |
| commit | 933e25804cfbd3a86f3597083282a6ac96b5fff1 (patch) | |
| tree | 8b551f75e3d02178835be4d83f55a2c8101912da /src/server/api | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| parent | fix login bug(#2384) (diff) | |
| download | sharkey-933e25804cfbd3a86f3597083282a6ac96b5fff1.tar.gz sharkey-933e25804cfbd3a86f3597083282a6ac96b5fff1.tar.bz2 sharkey-933e25804cfbd3a86f3597083282a6ac96b5fff1.zip | |
Merge pull request #2389 from Tosuke/fix-2384
Fix login bug(#2384)
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/private/signin.ts | 5 |
1 files 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') { |