Don't throw exception on unauthenticated requests

This commit is contained in:
Cody Robibero
2021-11-13 07:27:28 -07:00
parent 8868b34d78
commit 4a28f46cac
4 changed files with 14 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
if (!auth.HasToken)
{
throw new AuthenticationException("Request does not contain a token.");
return auth;
}
if (!auth.IsAuthenticated)