Bläddra i källkod

add windows phone exception

Luke Pulverenti 10 år sedan
förälder
incheckning
9ba84148dd

+ 4 - 3
MediaBrowser.Model/Configuration/ServerConfiguration.cs

@@ -176,7 +176,7 @@ namespace MediaBrowser.Model.Configuration
         public PeopleMetadataOptions PeopleMetadataOptions { get; set; }
         public bool FindInternetTrailers { get; set; }
 
-        public string[] InsecureApps { get; set; }
+        public string[] InsecureApps2 { get; set; }
 
         public bool SaveMetadataHidden { get; set; }
 
@@ -226,12 +226,13 @@ namespace MediaBrowser.Model.Configuration
 
             PeopleMetadataOptions = new PeopleMetadataOptions();
 
-            InsecureApps = new[]
+            InsecureApps2 = new[]
             {
                 "Roku",
                 "Chromecast",
                 "iOS",
-                "Android"
+                "Android",
+                "Windows Phone"
             };
 
             MetadataOptions = new[]

+ 1 - 1
MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs

@@ -65,7 +65,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
 
             if (!allowLocal || !req.IsLocal)
             {
-                if (!_config.Configuration.InsecureApps.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))
+                if (!_config.Configuration.InsecureApps2.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))
                 {
                     SessionManager.ValidateSecurityToken(auth.Token);
                 }