mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
fix login bug(#2384)
This commit is contained in:
parent
f16a684023
commit
b90db0e905
@ -12,8 +12,9 @@ export default async (ctx: Koa.Context) => {
|
|||||||
ctx.set('Access-Control-Allow-Credentials', 'true');
|
ctx.set('Access-Control-Allow-Credentials', 'true');
|
||||||
|
|
||||||
const body = ctx.request.body as any;
|
const body = ctx.request.body as any;
|
||||||
const username = body['username'];
|
// See: https://github.com/syuilo/misskey/issues/2384
|
||||||
const password = body['password'];
|
const username = body['username'] || body['x'];
|
||||||
|
const password = body['password'] || body['y'];
|
||||||
const token = body['token'];
|
const token = body['token'];
|
||||||
|
|
||||||
if (typeof username != 'string') {
|
if (typeof username != 'string') {
|
||||||
|
Loading…
Reference in New Issue
Block a user