redis storage for captcha mech

This commit is contained in:
realaravinth
2021-06-11 19:31:03 +05:30
parent 17ae532162
commit f5624947b9
29 changed files with 604 additions and 210 deletions

View File

@@ -20,7 +20,7 @@ use actix_web::{web, HttpResponse, Responder};
use super::auth::Password;
use crate::errors::*;
use crate::Data;
use crate::AppData;
#[my_codegen::post(
path = "crate::V1_API_ROUTES.account.delete",
@@ -29,7 +29,7 @@ use crate::Data;
async fn delete_account(
id: Identity,
payload: web::Json<Password>,
data: web::Data<Data>,
data: AppData,
) -> ServiceResult<impl Responder> {
use argon2_creds::Config;
use sqlx::Error::RowNotFound;