From a7ff5e5f213ed6a263a33ee307ad9c7e744de952 Mon Sep 17 00:00:00 2001 From: notmd Date: Sun, 29 Jan 2023 20:42:23 +0700 Subject: [PATCH] add comment --- website/src/lib/captcha.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/lib/captcha.ts b/website/src/lib/captcha.ts index 2eb4f0a6..384f69dd 100644 --- a/website/src/lib/captcha.ts +++ b/website/src/lib/captcha.ts @@ -40,6 +40,7 @@ export const checkCaptcha = async ( }; }; +// This function hasn't been tested yet, Cloudflare doesn't send `action` and `cdata` with a demo key. const getSuccess = (response: CheckCaptchaResponse, action: string | undefined, cdata: string | undefined) => { if (action === undefined && cdata === undefined) { return response.success;