forked from Qortal/qortal
Fixed bug in API key comparison
This commit is contained in:
parent
b761674b2c
commit
276a110e90
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user