add windows phone exception

This commit is contained in:
Luke Pulverenti 2014-10-15 08:33:50 -04:00
parent b7ed4df4fa
commit 9ba84148dd
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -65,7 +65,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
if (!allowLocal || !req.IsLocal) 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); SessionManager.ValidateSecurityToken(auth.Token);
} }