forked from jmug/stoatchat
Fix hCaptcha verification.
This commit is contained in:
@@ -18,7 +18,7 @@ pub fn verify(user_token: &Option<String>) -> Result<(), String> {
|
|||||||
let client = Client::new();
|
let client = Client::new();
|
||||||
if let Ok(response) = client
|
if let Ok(response) = client
|
||||||
.post("https://hcaptcha.com/siteverify")
|
.post("https://hcaptcha.com/siteverify")
|
||||||
.json(&map)
|
.form(&map)
|
||||||
.send()
|
.send()
|
||||||
{
|
{
|
||||||
let result: CaptchaResponse = response
|
let result: CaptchaResponse = response
|
||||||
|
|||||||
Reference in New Issue
Block a user