Merge branch 'maintenance' into devel

This commit is contained in:
GitHub Nightly Merge Action committed 2022-08-16 00:15:27 +00:00
commit 2712412c66
17 files changed
+314 -44

No files matched your search

+5
View File
@@ -281,6 +281,11 @@ def serverStatus():
@api.route("/login", methods=["POST"])
@octoprint.server.limiter.limit(
"3/minute;5/10 minutes;10/hour",
deduct_when=lambda response: response.status_code == 403,
error_message="You have made too many failed login attempts. Please try again later.",
)
def login():
data = request.get_json()
if not data:
+2
View File
@@ -331,6 +331,8 @@ def _getFileList(
}
if f["size"] is not None:
file.update({"size": f["size"]})
if f["date"] is not None:
file.update({"date": f["date"]})
files.append(file)
else:
filter_func = None