From 49044d7796271cdd8b723f55c47c35c0be05bf1a Mon Sep 17 00:00:00 2001
From: Paul Makles <paulmakles@gmail.com>
Date: Thu, 13 Aug 2020 13:56:54 +0200
Subject: [PATCH] Fix hCaptcha verification.

---
 src/util/captcha.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/captcha.rs b/src/util/captcha.rs
index a9f6213..caa672b 100644
--- a/src/util/captcha.rs
+++ b/src/util/captcha.rs
@@ -18,7 +18,7 @@ pub fn verify(user_token: &Option<String>) -> Result<(), String> {
             let client = Client::new();
             if let Ok(response) = client
                 .post("https://hcaptcha.com/siteverify")
-                .json(&map)
+                .form(&map)
                 .send()
             {
                 let result: CaptchaResponse = response
-- 
GitLab