added IProcessManager

This commit is contained in:
Luke Pulverenti
2015-02-28 13:47:05 -05:00
parent 291727f624
commit 3d22c48670
23 changed files with 291 additions and 23 deletions

View File

@@ -277,7 +277,11 @@ namespace MediaBrowser.Server.Implementations.Library
{
user.Policy.InvalidLoginAttemptCount = newValue;
if (newValue >= 3)
var maxCount = user.Policy.IsAdministrator ?
3 :
5;
if (newValue >= maxCount)
{
_logger.Debug("Disabling user {0} due to {1} unsuccessful login attempts.", user.Name, newValue.ToString(CultureInfo.InvariantCulture));
user.Policy.IsDisabled = true;

View File

@@ -113,6 +113,7 @@ namespace MediaBrowser.Server.Implementations.Sync.FolderSync
private IEnumerable<SyncAccount> GetSyncAccounts()
{
return new List<SyncAccount>();
// Dummy this up
return _userManager
.Users