# init_mcaptcha in mcaptcha::api::v1::pow::get_config - Rust
Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master.
Keywords: rust, rustlang, rust-lang, init_mcaptcha

# Function mcaptcha::api::v1::pow::get_config::init_mcaptcha
[−] [src]

    async fn init_mcaptcha(data: &AppData, key: &str) -> Result<(), ServiceError>

Expand description

Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master.

This fn gets mcaptcha config from database, builds [Defense][libmcaptcha::Defense], creates [MCaptcha][libmcaptcha::MCaptcha] and adds it to [Master][libmcaptcha::Defense]