mirror of
				https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
				synced 2024-08-15 00:53:38 +00:00 
			
		
		
		
	Enforce maximum email length
This commit is contained in:
		
							parent
							
								
									1db648a525
								
							
						
					
					
						commit
						ab3980cd38
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -897,7 +897,8 @@ post "/login" do |env|
 | 
				
			||||||
    next templated "error"
 | 
					    next templated "error"
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  email = env.params.body["email"]?.try &.downcase
 | 
					  # https://stackoverflow.com/a/574698
 | 
				
			||||||
 | 
					  email = env.params.body["email"]?.try &.downcase.byte_slice(0, 254)
 | 
				
			||||||
  password = env.params.body["password"]?
 | 
					  password = env.params.body["password"]?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  account_type = env.params.query["type"]?
 | 
					  account_type = env.params.query["type"]?
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue