Fixed: Make authentication cookie name unique to Readarr

This commit is contained in:
ta264 2022-02-20 21:32:38 +00:00
parent a40cce9c71
commit a677098f0f

View file

@ -29,6 +29,7 @@ public static AuthenticationBuilder AddAppAuthentication(this IServiceCollection
.AddBasic(AuthenticationType.Basic.ToString())
.AddCookie(AuthenticationType.Forms.ToString(), options =>
{
options.Cookie.Name = "ReadarrAuth";
options.AccessDeniedPath = "/login?loginFailed=true";
options.LoginPath = "/login";
options.ExpireTimeSpan = TimeSpan.FromDays(7);