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) {