diff options
Diffstat (limited to 'api/src')
-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 |