瀏覽代碼

Merge pull request #4756 from crobibero/api-key-inverted-condition

Fix inverted condition when authenticating with an ApiKey
Claus Vium 4 年之前
父節點
當前提交
c1bb29532f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

+ 2 - 2
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)