mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 02:01:28 +01:00 
			
		
		
		
	disable user lockout for now
This commit is contained in:
		
							parent
							
								
									f39d460f04
								
							
						
					
					
						commit
						d0df24d957
					
				@ -286,10 +286,10 @@ namespace MediaBrowser.Server.Implementations.Library
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                if (newValue >= maxCount)
 | 
					                if (newValue >= maxCount)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    _logger.Debug("Disabling user {0} due to {1} unsuccessful login attempts.", user.Name, newValue.ToString(CultureInfo.InvariantCulture));
 | 
					                    //_logger.Debug("Disabling user {0} due to {1} unsuccessful login attempts.", user.Name, newValue.ToString(CultureInfo.InvariantCulture));
 | 
				
			||||||
                    user.Policy.IsDisabled = true;
 | 
					                    //user.Policy.IsDisabled = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    fireLockout = true;
 | 
					                    //fireLockout = true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                await UpdateUserPolicy(user, user.Policy, false).ConfigureAwait(false);
 | 
					                await UpdateUserPolicy(user, user.Policy, false).ConfigureAwait(false);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user