Merge branch 'nuxt-refactor' of https://github.com/PretendoNetwork/website into nuxt-refactor
Some checks failed
Build and Publish Docker Image / Build and Publish (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish (arm64) (push) Has been cancelled

This commit is contained in:
limes
2026-08-16 18:38:29 +02:00

View File

@@ -3,7 +3,7 @@ import type { H3Event } from 'h3';
export async function hcaptchaVerify(event: H3Event, captchaResponse: string | null | undefined): Promise<boolean> {
const config = useRuntimeConfig(event);
if (!config.hcaptchaSiteKey) {
if (!config.public.hcaptchaSiteKey) {
return true;
} // No captcha is configured, always valid
if (!config.hcaptchaSecretKey) {