From 78b0f3a444e7e55e651fa8be5968f637ee94adc6 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 16 Aug 2026 18:34:56 +0200 Subject: [PATCH] fix: properly check hcaptcha public site key --- server/utils/hcaptcha.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/hcaptcha.ts b/server/utils/hcaptcha.ts index 155066e..cd1d1f0 100644 --- a/server/utils/hcaptcha.ts +++ b/server/utils/hcaptcha.ts @@ -3,7 +3,7 @@ import type { H3Event } from 'h3'; export async function hcaptchaVerify(event: H3Event, captchaResponse: string | null | undefined): Promise { const config = useRuntimeConfig(event); - if (!config.hcaptchaSiteKey) { + if (!config.public.hcaptchaSiteKey) { return true; } // No captcha is configured, always valid if (!config.hcaptchaSecretKey) {