Merge branch 'feat/captchaVerify' into slowcord

This commit is contained in:
Madeline
2022-07-20 15:46:16 +10:00

View File

@@ -39,8 +39,8 @@ export async function verifyCaptcha(response: string, ip?: string) {
body: `response=${encodeURIComponent(response)}`
+ `&secret=${encodeURIComponent(secret!)}`
+ `&sitekey=${encodeURIComponent(sitekey!)}`
+ ip ? `&remoteip=${encodeURIComponent(ip!)}` : "",
})
+ (ip ? `&remoteip=${encodeURIComponent(ip!)}` : ""),
});
return await res.json() as hcaptchaResponse | recaptchaResponse;
}