Fixed bug in API key comparison

This commit is contained in:
CalDescent 2021-11-14 19:55:58 +00:00
parent b761674b2c
commit 276a110e90

View File

@ -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");
}
}