aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-12 22:25:45 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-13 00:00:57 -0400
commitb7621d762c58320b35096838ae8ab10d98ea9bb2 (patch)
tree895708bda08c4831a8e30e7b0ea7ca7d67da88b8 /Jellyfin.Data
parentc1360a1dc312938e77e52a509eb9186300bcb40d (diff)
parentbac4bf96a0e642f80f35bd6cdf3de17a9302b6c6 (diff)
2nd half of changes
Diffstat (limited to 'Jellyfin.Data')
-rw-r--r--Jellyfin.Data/Entities/User.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.cs
index 8cf144b17c..17913959ee 100644
--- a/Jellyfin.Data/Entities/User.cs
+++ b/Jellyfin.Data/Entities/User.cs
@@ -4,6 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Globalization;
using System.Linq;
+using System.Text.Json.Serialization;
using Jellyfin.Data.Enums;
namespace Jellyfin.Data.Entities
@@ -121,7 +122,8 @@ namespace Jellyfin.Data.Entities
/// </summary>
[Key]
[Required]
- public Guid Id { get; protected set; }
+ [JsonIgnore]
+ public Guid Id { get; set; }
/// <summary>
/// Required, Max length = 255
@@ -129,6 +131,7 @@ namespace Jellyfin.Data.Entities
[Required]
[MaxLength(255)]
[StringLength(255)]
+ [JsonPropertyName("Name")]
public string Username { get; set; }
/// <summary>