mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-03 22:57:18 +02:00
Lidarr, Radarr, and Prowlarr (maybe Readarr too) all use
the same name for their Authentication cookies .AspNetCore.Forms Sonarr uses a different name "SonarrAuth" this commit makes Radarr use "RadarrAuth"... similar changes should likely be ported to Lidarr, Prowlarr (and possibly Readarr)
This commit is contained in:
parent
beb22844c9
commit
dd80a64560
@ -29,6 +29,7 @@ public static AuthenticationBuilder AddAppAuthentication(this IServiceCollection
|
|||||||
.AddBasic(AuthenticationType.Basic.ToString())
|
.AddBasic(AuthenticationType.Basic.ToString())
|
||||||
.AddCookie(AuthenticationType.Forms.ToString(), options =>
|
.AddCookie(AuthenticationType.Forms.ToString(), options =>
|
||||||
{
|
{
|
||||||
|
options.Cookie.Name = "RadarrAuth";
|
||||||
options.AccessDeniedPath = "/login?loginFailed=true";
|
options.AccessDeniedPath = "/login?loginFailed=true";
|
||||||
options.LoginPath = "/login";
|
options.LoginPath = "/login";
|
||||||
options.ExpireTimeSpan = TimeSpan.FromDays(7);
|
options.ExpireTimeSpan = TimeSpan.FromDays(7);
|
||||||
|
Loading…
Reference in New Issue
Block a user