diff --git a/Cargo.lock b/Cargo.lock index 49e8eee..17bd58d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2205,6 +2205,7 @@ dependencies = [ "wasm-bindgen-futures", "web-sys", "yew", + "yew-recaptcha-v3", "yew-router", ] @@ -3110,6 +3111,23 @@ dependencies = [ "syn 2.0.42", ] +[[package]] +name = "yew-recaptcha-v3" +version = "0.2.0" +source = "git+https://github.com/danbugs/yew-recaptcha/?rev=196f089158ea192b4e7db5b6c32d977cc5681d3c#196f089158ea192b4e7db5b6c32d977cc5681d3c" +dependencies = [ + "anyhow", + "gloo-console 0.3.0", + "gloo-utils 0.2.0", + "js-sys", + "serde", + "serde-wasm-bindgen 0.6.3", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "yew", +] + [[package]] name = "yew-router" version = "0.18.0" diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index 9eb3d41..a837e20 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -14,10 +14,12 @@ country-emoji = "0.2" js-sys = "0.3" wasm-bindgen = "0.2" yew-router = "0.18" +yew-recaptcha-v3 = { git = "https://github.com/danbugs/yew-recaptcha/", rev = "196f089158ea192b4e7db5b6c32d977cc5681d3c" } [dependencies.web-sys] version = "0.3" features = [ "HtmlInputElement", "HtmlButtonElement", + "HtmlCanvasElement", ] diff --git a/frontend/index.html b/frontend/index.html index cc5940f..215b5e1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -21,6 +21,7 @@ crossorigin="anonymous" referrerpolicy="no-referrer" /> +