Return NoResult only when request doesn't have a token.

This commit is contained in:
crobibero
2020-12-01 14:47:42 -07:00
parent 38b3b4f867
commit cd459c51f3
4 changed files with 17 additions and 6 deletions

View File

@@ -102,7 +102,8 @@ namespace Emby.Server.Implementations.HttpServer.Security
DeviceId = deviceId,
Version = version,
Token = token,
IsAuthenticated = false
IsAuthenticated = false,
HasToken = false
};
if (string.IsNullOrWhiteSpace(token))
@@ -111,6 +112,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
return authInfo;
}
authInfo.HasToken = true;
var result = _authRepo.Get(new AuthenticationInfoQuery
{
AccessToken = token