mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-02 18:47:18 -05:00 
			
		
		
		
	Fix the is-local check when resetting the password
This fixes the check whether a warning should be logged when resetting the password from outside the local network. Fixes: #10059
This commit is contained in:
		
							parent
							
								
									d3c7af0d5c
								
							
						
					
					
						commit
						dd75f35a1a
					
				@ -494,7 +494,7 @@ public class UserController : BaseJellyfinApiController
 | 
				
			|||||||
        var isLocal = HttpContext.IsLocal()
 | 
					        var isLocal = HttpContext.IsLocal()
 | 
				
			||||||
                      || _networkManager.IsInLocalNetwork(ip);
 | 
					                      || _networkManager.IsInLocalNetwork(ip);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (isLocal)
 | 
					        if (!isLocal)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            _logger.LogWarning("Password reset process initiated from outside the local network with IP: {IP}", ip);
 | 
					            _logger.LogWarning("Password reset process initiated from outside the local network with IP: {IP}", ip);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user