mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
AuthenticationContextFactory must never return null
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user