Merge branch 'feat/captchaVerify' into slowcord

This commit is contained in:
Madeline
2022-07-20 15:46:16 +10:00
+2 -2
View File
@@ -39,8 +39,8 @@ export async function verifyCaptcha(response: string, ip?: string) {
body: `response=${encodeURIComponent(response)}` body: `response=${encodeURIComponent(response)}`
+ `&secret=${encodeURIComponent(secret!)}` + `&secret=${encodeURIComponent(secret!)}`
+ `&sitekey=${encodeURIComponent(sitekey!)}` + `&sitekey=${encodeURIComponent(sitekey!)}`
+ ip ? `&remoteip=${encodeURIComponent(ip!)}` : "", + (ip ? `&remoteip=${encodeURIComponent(ip!)}` : ""),
}) });
return await res.json() as hcaptchaResponse | recaptchaResponse; return await res.json() as hcaptchaResponse | recaptchaResponse;
} }