mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix user request logging
This commit is contained in:
parent
5231cab777
commit
3f9a412b02
@ -110,11 +110,16 @@ namespace MediaBrowser.Api
|
||||
|
||||
if (auth != null && auth.ContainsKey("UserId"))
|
||||
{
|
||||
var user = UserManager.GetUserById(new Guid(auth["UserId"]));
|
||||
var userId = auth["UserId"];
|
||||
|
||||
if (!string.IsNullOrEmpty(userId))
|
||||
{
|
||||
var user = UserManager.GetUserById(new Guid(userId));
|
||||
|
||||
UserManager.LogUserActivity(user, auth["Client"], auth["DeviceId"], auth["Device"] ?? string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the auth.
|
||||
|
Loading…
x
Reference in New Issue
Block a user