mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #6822 from NickSica/master
This commit is contained in:
commit
8868b34d78
@ -185,9 +185,21 @@ namespace Jellyfin.Server.Implementations.Security
|
|||||||
authInfo.IsAuthenticated = true;
|
authInfo.IsAuthenticated = true;
|
||||||
authInfo.Client = key.Name;
|
authInfo.Client = key.Name;
|
||||||
authInfo.Token = key.AccessToken;
|
authInfo.Token = key.AccessToken;
|
||||||
authInfo.DeviceId = string.Empty;
|
if (string.IsNullOrWhiteSpace(authInfo.DeviceId))
|
||||||
authInfo.Device = string.Empty;
|
{
|
||||||
authInfo.Version = string.Empty;
|
authInfo.DeviceId = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(authInfo.Device))
|
||||||
|
{
|
||||||
|
authInfo.Device = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(authInfo.Version))
|
||||||
|
{
|
||||||
|
authInfo.Version = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
authInfo.IsApiKey = true;
|
authInfo.IsApiKey = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user