|
|
|
@ -6,6 +6,7 @@ using System.Security.Principal;
|
|
|
|
|
using Nancy;
|
|
|
|
|
using Nancy.Authentication.Basic;
|
|
|
|
|
using Nancy.Authentication.Forms;
|
|
|
|
|
using Nancy.Routing.Trie.Nodes;
|
|
|
|
|
using NLog;
|
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
|
using NzbDrone.Core.Authentication;
|
|
|
|
@ -161,6 +162,11 @@ namespace Sonarr.Http.Authentication
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (context.Request.IsBundledJsRequest())
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ValidUser(context))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|