1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-12 17:44:42 +00:00

core: fix login redirect with nginx + admin password. resolves #4765 (#6561)

This commit is contained in:
Diego Heras 2019-12-09 20:30:12 +01:00 committed by garfield69
parent b666b01461
commit 642bed1ef4

View file

@ -45,9 +45,9 @@ namespace Jackett.Server
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme,
options =>
{
options.LoginPath = new PathString("/UI/Login");
options.AccessDeniedPath = new PathString("/UI/Login");
options.LogoutPath = new PathString("/UI/Logout");
options.LoginPath = new PathString(Helper.ServerService.BasePath() + "/UI/Login");
options.AccessDeniedPath = new PathString(Helper.ServerService.BasePath() + "/UI/Login");
options.LogoutPath = new PathString(Helper.ServerService.BasePath() + "/UI/Logout");
options.Cookie.Name = "Jackett";
options.Cookie.SameSite = SameSiteMode.None;
});