Update signin.ts
This commit is contained in:
		| @@ -12,9 +12,8 @@ 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; | ||||||
| 	// See: https://github.com/syuilo/misskey/issues/2384 | 	const username = body['username']; | ||||||
| 	const username = body['username'] || body['x']; | 	const password = body['password']; | ||||||
| 	const password = body['password'] || body['y']; |  | ||||||
| 	const token = body['token']; | 	const token = body['token']; | ||||||
|  |  | ||||||
| 	if (typeof username != 'string') { | 	if (typeof username != 'string') { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo