mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	rate_limiter: Rate limit the /new/ endpoint.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							4418aefde4
						
					
				
				
					commit
					1c64bed8e4
				
			@@ -384,6 +384,9 @@ RATE_LIMITING_RULES = {
 | 
			
		||||
    "authenticate_by_username": [
 | 
			
		||||
        (1800, 5),  # 5 login attempts within 30 minutes
 | 
			
		||||
    ],
 | 
			
		||||
    "create_realm_by_ip": [
 | 
			
		||||
        (1800, 5),
 | 
			
		||||
    ],
 | 
			
		||||
    "password_reset_form_by_email": [
 | 
			
		||||
        (3600, 2),  # 2 reset emails per hour
 | 
			
		||||
        (86400, 5),  # 5 per day
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user