mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Code cleanups
This commit is contained in:
@@ -158,9 +158,7 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
private string? GetUserId()
|
||||
{
|
||||
if (User.Identity?.AuthenticationType != AuthenticationSchemes.Cookie)
|
||||
return null;
|
||||
return _userManager.GetUserId(User);
|
||||
return User.Identity?.AuthenticationType != AuthenticationSchemes.Cookie ? null : _userManager.GetUserId(User);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user