mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
refactor: Remove recaptcha-verify
This commit is contained in:
1 parent
935ddf1d0f
commit
39bee607c0
7 files changed
+61
-42
No files matched your search
@@ -32,10 +32,6 @@ futures.workspace = true
|
||||
lettre.workspace = true
|
||||
memory-serve = "2.1.0"
|
||||
openidconnect.workspace = true
|
||||
recaptcha-verify = { default-features = false, version = "0.2.0" }
|
||||
reqwest_recaptcha = { default-features = false, features = [
|
||||
"rustls-tls-native-roots-no-provider",
|
||||
], package = "reqwest", version = "0.12.28" } # As long as recaptcha-verify's reqwest is outdated
|
||||
ruma.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
||||
@@ -398,13 +398,10 @@ async fn begin_registration(
|
||||
));
|
||||
};
|
||||
|
||||
if recaptcha_verify::verify_v3(
|
||||
recaptcha_private_site_key,
|
||||
&recaptcha_response,
|
||||
None,
|
||||
)
|
||||
.await
|
||||
.is_err()
|
||||
if !services
|
||||
.client
|
||||
.recaptcha_verify(recaptcha_private_site_key, &recaptcha_response)
|
||||
.await
|
||||
{
|
||||
errors.add(
|
||||
"recaptcha",
|
||||
|
||||
Reference in new issue
Block a user