mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-24 01:26:57 -05:00
Merge branch 'nuxt-refactor' of https://github.com/PretendoNetwork/website into nuxt-refactor
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user