mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix Api Key authentication
This commit is contained in:
parent
bbac9ff67e
commit
fdba71e133
@ -171,15 +171,7 @@ namespace Jellyfin.Server.Implementations.Security
|
|||||||
updateToken = true;
|
updateToken = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!device.UserId.Equals(Guid.Empty))
|
|
||||||
{
|
|
||||||
authInfo.User = _userManager.GetUserById(device.UserId);
|
authInfo.User = _userManager.GetUserById(device.UserId);
|
||||||
authInfo.IsApiKey = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
authInfo.IsApiKey = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (updateToken)
|
if (updateToken)
|
||||||
{
|
{
|
||||||
@ -198,6 +190,7 @@ namespace Jellyfin.Server.Implementations.Security
|
|||||||
authInfo.DeviceId = string.Empty;
|
authInfo.DeviceId = string.Empty;
|
||||||
authInfo.Device = string.Empty;
|
authInfo.Device = string.Empty;
|
||||||
authInfo.Version = string.Empty;
|
authInfo.Version = string.Empty;
|
||||||
|
authInfo.IsApiKey = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user