Validate AuthenticationProviderId and PasswordResetProviderId (#10553)

This commit is contained in:
Chris H
2023-11-10 14:51:44 +00:00
committed by GitHub
parent b1acde54fb
commit 3fd505a454
3 changed files with 125 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;
using Jellyfin.Data.Enums;
using AccessSchedule = Jellyfin.Data.Entities.AccessSchedule;
@@ -174,8 +175,10 @@ namespace MediaBrowser.Model.Users
public int RemoteClientBitrateLimit { get; set; }
[XmlElement(ElementName = "AuthenticationProviderId")]
[Required(AllowEmptyStrings = false)]
public string AuthenticationProviderId { get; set; }
[Required(AllowEmptyStrings= false)]
public string PasswordResetProviderId { get; set; }
/// <summary>