소스 검색

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

Fix inverted condition when authenticating with an ApiKey

(cherry picked from commit c1bb29532fd4abb0245799df0cc6e9cd6d576568)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Claus Vium 4 년 전
부모
커밋
02cc83b807
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)