AuthenticationContextFactory must never return null

This commit is contained in:
Jordan Brown
2018-08-02 09:43:53 -04:00
parent 5f9cbb6cb6
commit b959619d73
@@ -57,7 +57,10 @@ namespace Tgstation.Server.Host.Security
var user = await userQuery.ConfigureAwait(false);
if (user == default)
{
CurrentAuthenticationContext = new AuthenticationContext();
return;
}
ISystemIdentity systemIdentity;
if (user.SystemIdentifier != null)