Merge branch 'feat/captchaVerify' into slowcord
This commit is contained in:
commit
baba1c5349
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user