diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-10-04 11:50:00 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-10-04 13:02:54 -0400 |
| commit | 5a7dda337f4cdda0d0c61adef3d2b13772e708d0 (patch) | |
| tree | f4020d44df725a491f23495e57690ebae215e5c2 /Jellyfin.Data/Entities | |
| parent | d11adeb85ee82c3699f5a3a2e4f660623a19df78 (diff) | |
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.
Diffstat (limited to 'Jellyfin.Data/Entities')
| -rw-r--r-- | Jellyfin.Data/Entities/User.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.cs index f7ab57a1b1..daa4de0b57 100644 --- a/Jellyfin.Data/Entities/User.cs +++ b/Jellyfin.Data/Entities/User.cs @@ -189,6 +189,11 @@ namespace Jellyfin.Data.Entities public int? LoginAttemptsBeforeLockout { get; set; } /// <summary> + /// Gets or sets the maximum number of active sessions the user can have at once. + /// </summary> + public int? MaxActiveSessions { get; set; } + + /// <summary> /// Gets or sets the subtitle mode. /// </summary> /// <remarks> |
