Move SecurityException

This commit is contained in:
crobibero
2020-10-15 08:02:59 -06:00
parent 4b6889615b
commit d5c226b1c3
2 changed files with 6 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
if (string.IsNullOrWhiteSpace(token))
{
// Request doesn't contain a token.
throw new SecurityException("Unauthorized.");
return (null, null);
}
var result = _authRepo.Get(new AuthenticationInfoQuery