Function fcaptcha::build_puzzle::build_puzzle
source · pub fn build_puzzle(ip_address: &str) -> Result<String, BuildPuzzleError>Expand description
Builds a new puzzle for an ip_address.
Can be configured with the environment variables FCAPTCHA_ACCESS_TTL and FCAPTCHA_SECRET_KEY.
Examples
let ip_address = "127.0.0.1";
let puzzle = fcaptcha::build_puzzle(ip_address);
println!("{:?}", puzzle.unwrap());