diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-20 15:46:16 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-20 15:46:16 +1000 |
commit | baba1c53499af9bb56bf10ffbe2e469026ae5081 (patch) | |
tree | e5909ee8ce85b57e0cdc5c36b003770c908d6b11 | |
parent | Merge branch 'feat/captchaVerify' into slowcord (diff) | |
parent | Captcha checking (diff) | |
download | server-baba1c53499af9bb56bf10ffbe2e469026ae5081.tar.xz |
Merge branch 'feat/captchaVerify' into slowcord
-rw-r--r-- | api/src/util/utility/captcha.ts | 4 |
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 |