Function guard::api::v1::pow::get_config::init_mcaptcha [−][src]
async fn init_mcaptcha(data: &Data, key: &str) -> Result<(), ServiceError>
Call this when [MCaptcha][m_captcha::MCaptcha] is not in master.
This fn gets mcaptcha config from database, builds [Defense][m_captcha::Defense], creates [MCaptcha][m_captcha::MCaptcha] and adds it to [Master][m_captcha::Defense]