Add active session tracking

Adds a flag for a maximum number of user sessions, as well as an
authentication check to ensure that the user is not above this level.
This commit is contained in:
Joshua M. Boniface
2020-10-04 11:50:00 -04:00
parent d11adeb85e
commit 5a7dda337f
4 changed files with 26 additions and 0 deletions

View File

@@ -92,6 +92,10 @@ namespace MediaBrowser.Model.Users
public int LoginAttemptsBeforeLockout { get; set; }
public int ActiveSessionCount { get; set; }
public int MaxActiveSessions { get; set; }
public bool EnablePublicSharing { get; set; }
public Guid[] BlockedMediaFolders { get; set; }
@@ -144,6 +148,8 @@ namespace MediaBrowser.Model.Users
LoginAttemptsBeforeLockout = -1;
MaxActiveSessions = -1;
EnableAllChannels = true;
EnabledChannels = Array.Empty<Guid>();