From 276a110e9023e1b495782de0aa4d40bc43fe372e Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 14 Nov 2021 19:55:58 +0000 Subject: [PATCH] Fixed bug in API key comparison --- src/main/java/org/qortal/api/Security.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/api/Security.java b/src/main/java/org/qortal/api/Security.java index e0a45339..8bfcaadf 100644 --- a/src/main/java/org/qortal/api/Security.java +++ b/src/main/java/org/qortal/api/Security.java @@ -41,7 +41,7 @@ public abstract class Security { } // The API keys must match - if (!apiKey.equals(passedApiKey)) { + if (!apiKey.toString().equals(passedApiKey)) { throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.UNAUTHORIZED, "API key invalid"); } }