Better API key check

This commit is contained in:
Gina Häußge committed 2018-06-25 18:53:42 +02:00
1 parent 2a67772f46
commit 13ab34a5c8
1 file changed
+1 -1
+1 -1
View File
@@ -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"]):