Skip to content

panicbit/recaptcha-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recaptcha-rs Build Status

Recaptcha-rs is a very simple library to verify recaptcha responses.

Installation

To use recaptcha-rs in your project you can add the following to your Cargo.toml:

[dependencies]
recaptcha = "0.5.0"

Usage

Verifying recaptcha responses is very easy:

extern crate recaptcha;

fn main() {
    let remote_ip = "123.123.123.123".parse().ok();
    let res = recaptcha::verify("your_private_key", "user_response", remote_ip).await;

    if res.is_ok() {
        println!("Success");
    } else {
        println!("Failure");
    }
}

About

Verify recaptcha responses

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages