summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-20 15:46:16 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-20 15:46:16 +1000
commit031e03271e2b8259be5028a9b0a7657165dafb68 (patch)
tree10efbe6201bd8ae3cb5b209d84adcd65731cf818
parentMerge branch 'feat/captchaVerify' into slowcord (diff)
parentCaptcha checking (diff)
downloadserver-031e03271e2b8259be5028a9b0a7657165dafb68.tar.xz
Merge branch 'feat/captchaVerify' into slowcord
-rw-r--r--api/src/util/utility/captcha.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/util/utility/captcha.ts b/api/src/util/utility/captcha.ts

index 016861fa..739647d2 100644 --- a/api/src/util/utility/captcha.ts +++ b/api/src/util/utility/captcha.ts
@@ -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; } \ No newline at end of file