mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 23:35:25 +03:00
beta fixes
This commit is contained in:
@@ -28,7 +28,10 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
||||
if (!string.IsNullOrWhiteSpace(authorization.Token))
|
||||
{
|
||||
var auth = GetTokenInfo(requestContext);
|
||||
return _sessionManager.GetSessionByAuthenticationToken(auth, authorization.DeviceId, requestContext.RemoteIp, authorization.Version);
|
||||
if (auth != null)
|
||||
{
|
||||
return _sessionManager.GetSessionByAuthenticationToken(auth, authorization.DeviceId, requestContext.RemoteIp, authorization.Version);
|
||||
}
|
||||
}
|
||||
|
||||
var session = _sessionManager.GetSession(authorization.DeviceId, authorization.Client, authorization.Version);
|
||||
|
||||
Reference in New Issue
Block a user