From 382e6c95ea4a0dc1006ac9783572aa6bce2f1aca Mon Sep 17 00:00:00 2001 From: LOGI <18008498+vcheckzen@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:12:52 +0800 Subject: [PATCH] fix: upload authentication --- back-end-cf/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back-end-cf/index.js b/back-end-cf/index.js index 6173f1b0..0c9ed94d 100644 --- a/back-end-cf/index.js +++ b/back-end-cf/index.js @@ -73,7 +73,7 @@ async function handleRequest(request) { // Upload files if (requestUrl.searchParams.has('upload')) { const allowUpload = (await downloadFile(`${requestPath}/.upload`)).status === 302; - await authenticate(); + await authenticate(requestPath, body.passwd); const uploadAttack = !allowUpload || body.files.some(