mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-24 09:36:43 -05:00
fix: properly check hcaptcha public site key
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