1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

rcon command formatted to work in linux

fixes to work with mono
This commit is contained in:
RaidMax
2018-04-07 14:49:00 -05:00
parent f61b693582
commit 0db93be91f
9 changed files with 30 additions and 73 deletions

View File

@ -17,7 +17,6 @@ namespace WebfrontCore
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)
.AddEnvironmentVariables();
Configuration = builder.Build();
// fixme: this is really really terrible
if (!SharedLibrary.Utilities.IsRunningOnMono())
@ -63,11 +62,11 @@ namespace WebfrontCore
app.UseCookieAuthentication(new CookieAuthenticationOptions()
{
AccessDeniedPath = "/Account/Login/",
AccessDeniedPath = "/",
AuthenticationScheme = CookieAuthenticationDefaults.AuthenticationScheme,
AutomaticAuthenticate = true,
AutomaticChallenge = true,
LoginPath = "/Account/Login/",
LoginPath = "/",
ExpireTimeSpan = TimeSpan.FromDays(30),
});