Fix hCaptcha verification.

This commit is contained in:
Paul Makles
2020-08-13 13:56:54 +02:00
parent f44180a980
commit 49044d7796

View File

@@ -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