|
|
@ -4,7 +4,6 @@ using Nancy;
|
|
|
|
using Nancy.Authentication.Basic;
|
|
|
|
using Nancy.Authentication.Basic;
|
|
|
|
using Nancy.Authentication.Forms;
|
|
|
|
using Nancy.Authentication.Forms;
|
|
|
|
using Nancy.Bootstrapper;
|
|
|
|
using Nancy.Bootstrapper;
|
|
|
|
using Nancy.Cookies;
|
|
|
|
|
|
|
|
using Nancy.Cryptography;
|
|
|
|
using Nancy.Cryptography;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Core.Authentication;
|
|
|
|
using NzbDrone.Core.Authentication;
|
|
|
@ -117,7 +116,7 @@ namespace Radarr.Http.Authentication
|
|
|
|
|
|
|
|
|
|
|
|
if (FormsAuthentication.DecryptAndValidateAuthenticationCookie(formsAuthCookieValue, _formsAuthConfig).IsNotNullOrWhiteSpace())
|
|
|
|
if (FormsAuthentication.DecryptAndValidateAuthenticationCookie(formsAuthCookieValue, _formsAuthConfig).IsNotNullOrWhiteSpace())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var formsAuthCookie = new NancyCookie(formsAuthCookieName, formsAuthCookieValue, true, false, DateTime.UtcNow.AddDays(7))
|
|
|
|
var formsAuthCookie = new RadarrNancyCookie(formsAuthCookieName, formsAuthCookieValue, true, false, DateTime.UtcNow.AddDays(7))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = GetCookiePath()
|
|
|
|
Path = GetCookiePath()
|
|
|
|
};
|
|
|
|
};
|
|
|
|