mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-07 00:08:29 +01:00
added some user access settings
This commit is contained in:
10
MediaBrowser.Model/Configuration/ManualLoginCategory.cs
Normal file
10
MediaBrowser.Model/Configuration/ManualLoginCategory.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
public enum ManualLoginCategory
|
||||
{
|
||||
Mobile,
|
||||
MediaBrowserTheater,
|
||||
Roku
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
using MediaBrowser.Model.Weather;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
@@ -20,7 +20,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// </summary>
|
||||
/// <value>The weather unit.</value>
|
||||
public WeatherUnits WeatherUnit { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [enable HTTP level logging].
|
||||
/// </summary>
|
||||
@@ -223,6 +223,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// <value>The dashboard source path.</value>
|
||||
public string DashboardSourcePath { get; set; }
|
||||
|
||||
public ManualLoginCategory[] ManualLoginClients { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -249,6 +251,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
EnableInternetProviders = true; //initial installs will need these
|
||||
InternetProviderExcludeTypes = new string[] { };
|
||||
|
||||
ManualLoginClients = new ManualLoginCategory[] { };
|
||||
|
||||
MetadataRefreshDays = 30;
|
||||
PreferredMetadataLanguage = "en";
|
||||
MetadataCountryCode = "US";
|
||||
|
||||
@@ -47,7 +47,15 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
|
||||
public bool UseForcedSubtitlesOnly { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is hidden.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
|
||||
public bool IsHidden { get; set; }
|
||||
|
||||
public bool IsDisabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
|
||||
/// </summary>
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
</Compile>
|
||||
<Compile Include="ApiClient\IApiClient.cs" />
|
||||
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
|
||||
<Compile Include="Configuration\ManualLoginCategory.cs" />
|
||||
<Compile Include="Configuration\ServerConfiguration.cs" />
|
||||
<Compile Include="Dto\BaseItemPerson.cs" />
|
||||
<Compile Include="Dto\ChapterInfoDto.cs" />
|
||||
@@ -141,6 +142,7 @@
|
||||
<Compile Include="Tasks\TaskTriggerInfo.cs" />
|
||||
<Compile Include="Updates\PackageInfo.cs" />
|
||||
<Compile Include="Updates\PackageVersionInfo.cs" />
|
||||
<Compile Include="Users\AuthenticationResult.cs" />
|
||||
<Compile Include="Weather\WeatherUnits.cs" />
|
||||
<Compile Include="Web\QueryStringDictionary.cs" />
|
||||
<None Include="FodyWeavers.xml" />
|
||||
|
||||
9
MediaBrowser.Model/Users/AuthenticationResult.cs
Normal file
9
MediaBrowser.Model/Users/AuthenticationResult.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using MediaBrowser.Model.Dto;
|
||||
|
||||
namespace MediaBrowser.Model.Users
|
||||
{
|
||||
public class AuthenticationResult
|
||||
{
|
||||
public UserDto User { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user