summary refs log tree commit diff
path: root/api/src
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
commitbaba1c53499af9bb56bf10ffbe2e469026ae5081 (patch)
treee5909ee8ce85b57e0cdc5c36b003770c908d6b11 /api/src
parentMerge branch 'feat/captchaVerify' into slowcord (diff)
parentCaptcha checking (diff)
downloadserver-baba1c53499af9bb56bf10ffbe2e469026ae5081.tar.xz
Merge branch 'feat/captchaVerify' into slowcord
Diffstat (limited to 'api/src')
-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