☂ Resilience against issue in Printoid

Closes #3381
This commit is contained in:
Gina Häußge committed 2019-12-10 12:55:47 +01:00
1 parent 71b5de91bf
commit 0faa6879b4
1 file changed
+1 -1
+1 -1
View File
@@ -205,7 +205,7 @@ def apiVersion():
@api.route("/login", methods=["POST"])
def login():
data = request.get_json()
if data is None:
if not data:
data = request.values
if octoprint.server.userManager.enabled and "user" in data and "pass" in data: