Skip to content
Snippets Groups Projects
Commit 49044d77 authored by insert's avatar insert
Browse files

Fix hCaptcha verification.

parent f44180a9
No related merge requests found
...@@ -18,7 +18,7 @@ pub fn verify(user_token: &Option<String>) -> Result<(), String> { ...@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment