aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-12-09 23:15:33 -0700
committercrobibero <cody@robibe.ro>2020-12-09 23:15:33 -0700
commit2478c8fa644b7f08100dcd001d08b021bf87b36e (patch)
tree91588008891423a65538c69fe018d49b3d82bc42 /Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
parent9e601ba7317bd8948072ef1a60a7001b33b507a5 (diff)
Fix inverted condition when authenticating with an ApiKey
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index d62e2eefe..024404ceb 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -185,11 +185,11 @@ namespace Emby.Server.Implementations.HttpServer.Security
updateToken = true;
}
- authInfo.IsApiKey = true;
+ authInfo.IsApiKey = false;
}
else
{
- authInfo.IsApiKey = false;
+ authInfo.IsApiKey = true;
}
if (updateToken)