diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-12-11 09:54:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-11 09:54:15 +0100 |
| commit | c1bb29532fd4abb0245799df0cc6e9cd6d576568 (patch) | |
| tree | d60b6126f95d65c043e6d577ba51b982fd789f05 | |
| parent | f3228661279cbb6bc7251c8f737680dff1336002 (diff) | |
| parent | 2478c8fa644b7f08100dcd001d08b021bf87b36e (diff) | |
Merge pull request #4756 from crobibero/api-key-inverted-condition
Fix inverted condition when authenticating with an ApiKey
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | 4 |
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) |
