فهرست منبع

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)