demo user task

This commit is contained in:
realaravinth
2021-08-09 11:56:25 +05:30
parent 3c72d27b36
commit 147f563ec8
18 changed files with 190 additions and 72 deletions

View File

@@ -152,7 +152,7 @@ async fn init_mcaptcha(data: &AppData, key: &str) -> ServiceResult<()> {
#[cfg(test)]
mod tests {
use actix_web::http::{header, StatusCode};
use actix_web::http::StatusCode;
use actix_web::test;
use libmcaptcha::pow::PoWConfig;

View File

@@ -52,7 +52,7 @@ pub async fn verify_pow(
#[cfg(test)]
mod tests {
use actix_web::http::{header, StatusCode};
use actix_web::http::StatusCode;
use actix_web::test;
use libmcaptcha::pow::PoWConfig;

View File

@@ -53,7 +53,7 @@ pub async fn validate_captcha_token(
#[cfg(test)]
mod tests {
use actix_web::http::{header, StatusCode};
use actix_web::http::StatusCode;
use actix_web::test;
use libmcaptcha::pow::PoWConfig;
use libmcaptcha::pow::Work;