mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
log requests even without a user
This commit is contained in:
parent
ea04e957c8
commit
2ea9b7e4eb
1 changed files with 3 additions and 5 deletions
|
@ -122,15 +122,13 @@ namespace MediaBrowser.Api
|
|||
|
||||
var auth = GetAuthorization(request);
|
||||
|
||||
if (auth != null && auth.ContainsKey("UserId"))
|
||||
if (auth != null)
|
||||
{
|
||||
var userId = auth["UserId"];
|
||||
|
||||
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"];
|
||||
|
|
Loading…
Reference in a new issue