mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 14:04:15 +01:00
again fix unnecessary exception
This commit is contained in:
parent
a3e2718271
commit
209a33d6f9
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ public class SecretKeyAuthenticatorService
|
||||||
using var context = scope.ServiceProvider.GetService<MareDbContext>();
|
using var context = scope.ServiceProvider.GetService<MareDbContext>();
|
||||||
var authReply = await context.Auth.AsNoTracking().SingleOrDefaultAsync(u => u.HashedKey == hashedSecretKey).ConfigureAwait(false);
|
var authReply = await context.Auth.AsNoTracking().SingleOrDefaultAsync(u => u.HashedKey == hashedSecretKey).ConfigureAwait(false);
|
||||||
var isBanned = authReply?.IsBanned ?? false;
|
var isBanned = authReply?.IsBanned ?? false;
|
||||||
var primaryUid = authReply.PrimaryUserUID ?? authReply?.UserUID;
|
var primaryUid = authReply?.PrimaryUserUID ?? authReply?.UserUID;
|
||||||
|
|
||||||
if (authReply?.PrimaryUserUID != null)
|
if (authReply?.PrimaryUserUID != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue