mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
fix admin cookie expiration
This commit is contained in:
parent
6efb7fcbfd
commit
13370e011f
@ -293,7 +293,7 @@ namespace Bit.Core.Utilities
|
||||
options.AccessDeniedPath = "/login?accessDenied=true";
|
||||
options.Cookie.Name = $"Bitwarden_{globalSettings.ProjectName}";
|
||||
options.Cookie.HttpOnly = true;
|
||||
options.Cookie.Expiration = options.ExpireTimeSpan = TimeSpan.FromDays(2);
|
||||
options.ExpireTimeSpan = TimeSpan.FromDays(2);
|
||||
options.ReturnUrlParameter = "returnUrl";
|
||||
options.SlidingExpiration = true;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user