From 209a33d6f9f2943a2f6dd49a50266551e511772d Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Wed, 18 Oct 2023 10:00:56 +0200 Subject: [PATCH] again fix unnecessary exception --- .../Authentication/SecretKeyAuthenticatorService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs b/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs index 4aafa93..a1637a1 100644 --- a/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs +++ b/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs @@ -57,7 +57,7 @@ public class SecretKeyAuthenticatorService using var context = scope.ServiceProvider.GetService(); var authReply = await context.Auth.AsNoTracking().SingleOrDefaultAsync(u => u.HashedKey == hashedSecretKey).ConfigureAwait(false); var isBanned = authReply?.IsBanned ?? false; - var primaryUid = authReply.PrimaryUserUID ?? authReply?.UserUID; + var primaryUid = authReply?.PrimaryUserUID ?? authReply?.UserUID; if (authReply?.PrimaryUserUID != null) {