mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Merge branch 'master' of https://github.com/syuilo/misskey
This commit is contained in:
		
						commit
						f91d2e8c8d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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') {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue