Explorar o código

disable user lockout for now

Luke Pulverenti %!s(int64=10) %!d(string=hai) anos
pai
achega
d0df24d957
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      MediaBrowser.Server.Implementations/Library/UserManager.cs

+ 3 - 3
MediaBrowser.Server.Implementations/Library/UserManager.cs

@@ -286,10 +286,10 @@ namespace MediaBrowser.Server.Implementations.Library
 
                 if (newValue >= maxCount)
                 {
-                    _logger.Debug("Disabling user {0} due to {1} unsuccessful login attempts.", user.Name, newValue.ToString(CultureInfo.InvariantCulture));
-                    user.Policy.IsDisabled = true;
+                    //_logger.Debug("Disabling user {0} due to {1} unsuccessful login attempts.", user.Name, newValue.ToString(CultureInfo.InvariantCulture));
+                    //user.Policy.IsDisabled = true;
 
-                    fireLockout = true;
+                    //fireLockout = true;
                 }
 
                 await UpdateUserPolicy(user, user.Policy, false).ConfigureAwait(false);