fixed minification and bundling

template tweaks
This commit is contained in:
RaidMax
2018-04-09 22:33:42 -05:00
parent d233b8cb50
commit c2a3cf0d15
33 changed files with 6384 additions and 1022 deletions

View File

@ -21,6 +21,7 @@ namespace WebfrontCore.Controllers
new InputInfo()
{
Name = "Reason",
Label = "Reason",
Placeholder = ""
}
},
@ -52,6 +53,7 @@ namespace WebfrontCore.Controllers
new InputInfo()
{
Name = "Reason",
Label = "Reason",
Placeholder = ""
}
},

View File

@ -27,16 +27,28 @@ namespace WebfrontCore.Controllers
ClientId = -1
};
try
if (HttpContext.Connection.RemoteIpAddress.ToString() != "127.0.0.1")
{
User.ClientId = Convert.ToInt32(base.User.Claims.First(c => c.Type == ClaimTypes.Sid).Value);
User.Level = (Player.Permission)Enum.Parse(typeof(Player.Permission), base.User.Claims.First(c => c.Type == ClaimTypes.Role).Value);
User.CurrentAlias = new EFAlias() { Name = base.User.Claims.First(c => c.Type == ClaimTypes.NameIdentifier).Value };
try
{
User.ClientId = Convert.ToInt32(base.User.Claims.First(c => c.Type == ClaimTypes.Sid).Value);
User.Level = (Player.Permission)Enum.Parse(typeof(Player.Permission), base.User.Claims.First(c => c.Type == ClaimTypes.Role).Value);
User.CurrentAlias = new EFAlias() { Name = base.User.Claims.First(c => c.Type == ClaimTypes.NameIdentifier).Value };
}
catch (InvalidOperationException)
{
}
}
catch (InvalidOperationException)
else
{
User.ClientId = 1;
User.Level = Player.Permission.Console;
User.CurrentAlias = new EFAlias() { Name = "IW4MAdmin" };
}
Authorized = User.ClientId >= 0;