mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 16:58:50 +01:00
Added User authentication
This commit is contained in:
parent
a529f07869
commit
3538789e46
12
MediaBrowser.Model/DTO/AuthenticationResult.cs
Normal file
12
MediaBrowser.Model/DTO/AuthenticationResult.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using ProtoBuf;
|
||||
|
||||
namespace MediaBrowser.Model.DTO
|
||||
{
|
||||
[ProtoContract]
|
||||
public class AuthenticationResult
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public bool Success { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -14,5 +14,8 @@ namespace MediaBrowser.Model.DTO
|
||||
|
||||
[ProtoMember(3)]
|
||||
public bool HasImage { get; set; }
|
||||
|
||||
[ProtoMember(4)]
|
||||
public bool HasPassword { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public class User : BaseEntity
|
||||
{
|
||||
public string Password { get; set; }
|
||||
|
||||
public string MaxParentalRating { get; set; }
|
||||
|
||||
public int RecentItemDays { get; set; }
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
|
||||
<Compile Include="Configuration\ServerConfiguration.cs" />
|
||||
<Compile Include="DTO\AudioInfo.cs" />
|
||||
<Compile Include="DTO\AuthenticationResult.cs" />
|
||||
<Compile Include="DTO\DTOBaseItem.cs" />
|
||||
<Compile Include="DTO\DTOUser.cs" />
|
||||
<Compile Include="DTO\VideoInfo.cs" />
|
||||
|
||||
Reference in New Issue
Block a user