mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-14 03:30:25 +01:00
log requests even without a user
This commit is contained in:
@@ -122,15 +122,13 @@ namespace MediaBrowser.Api
|
|||||||
|
|
||||||
var auth = GetAuthorization(request);
|
var auth = GetAuthorization(request);
|
||||||
|
|
||||||
if (auth != null && auth.ContainsKey("UserId"))
|
if (auth != null)
|
||||||
{
|
{
|
||||||
var userId = auth["UserId"];
|
|
||||||
|
|
||||||
User user = null;
|
User user = null;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(userId))
|
if (auth.ContainsKey("UserId"))
|
||||||
{
|
{
|
||||||
user = UserManager.GetUserById(new Guid(userId));
|
user = UserManager.GetUserById(new Guid(auth["UserId"]));
|
||||||
}
|
}
|
||||||
|
|
||||||
var deviceId = auth["DeviceId"];
|
var deviceId = auth["DeviceId"];
|
||||||
|
|||||||
Reference in New Issue
Block a user