1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 23:00:57 -05:00

Added login plugin

This commit is contained in:
RaidMax
2018-04-13 23:51:38 -05:00
parent b9c11d48c2
commit 4725f8b6f8
13 changed files with 256 additions and 23 deletions

View File

@ -133,10 +133,6 @@ namespace SharedLibraryCore.Services
{
using (var context = new DatabaseContext())
{
/*context.Configuration.LazyLoadingEnabled = false;
context.Configuration.ProxyCreationEnabled = false;
context.Configuration.AutoDetectChangesEnabled = false;*/
if (victim)
{
var now = DateTime.UtcNow;
@ -162,7 +158,7 @@ namespace SharedLibraryCore.Services
PunisherId = penalty.PunisherId,
Offense = penalty.Offense,
Type = penalty.Type.ToString(),
TimeRemaining = now > penalty.Expires ? "" : penalty.Expires.ToString()
TimeRemaining = now > penalty.Expires ? "" : penalty.Expires.ToString()
},
When = penalty.When,
Sensitive = penalty.Type == Objects.Penalty.PenaltyType.Flag