fix nullref

This commit is contained in:
rootdarkarchon
2024-01-17 11:33:26 +01:00
parent 79b6dcf646
commit b0b349ca3a

View File

@@ -60,7 +60,7 @@ public class SecretKeyAuthenticatorService
} }
SecretKeyAuthReply reply = new(authReply != null, authReply?.UserUID, SecretKeyAuthReply reply = new(authReply != null, authReply?.UserUID,
authReply?.PrimaryUserUID ?? authReply?.UserUID, authReply.User.Alias ?? string.Empty, TempBan: false, isBanned); authReply?.PrimaryUserUID ?? authReply?.UserUID, authReply?.User?.Alias ?? string.Empty, TempBan: false, isBanned);
if (reply.Success) if (reply.Success)
{ {