Better API key check
This commit is contained in:
1 parent
2a67772f46
commit
13ab34a5c8
1 file changed
+1
-1
@@ -43,7 +43,7 @@ def enforceApiKeyRequestHandler():
|
||||
|
||||
apikey = get_api_key(_flask.request)
|
||||
|
||||
if apikey is None:
|
||||
if not apikey:
|
||||
return _flask.make_response("No API key provided", 403)
|
||||
|
||||
if apikey != octoprint.server.UI_API_KEY and not settings().getBoolean(["api", "enabled"]):
|
||||
|
||||
Reference in new issue
Block a user