Fixes login logging. Buffs system identity expiration time

This commit is contained in:
Jordan Brown
2018-08-07 13:45:24 -04:00
parent 757ceb7154
commit 57ac907c3a
@@ -126,9 +126,9 @@ namespace Tgstation.Server.Host.Controllers
var token = tokenFactory.CreateToken(user, out var expiry);
if (identity != null)
identityCache.CacheSystemIdentity(user, identity, expiry.AddSeconds(10)); //expire the identity slightly after the auth token in case of lag
identityCache.CacheSystemIdentity(user, identity, expiry.AddMinutes(1)); //expire the identity slightly after the auth token in case of lag
Logger.LogDebug("Successfully logged in user {0} ({1})!", user.Id, user.CanonicalName);
Logger.LogDebug("Successfully logged in user {0}!", user.Id);
return Json(token);
}