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 serde::{Deserialize, Serialize};
use crate::errors::*;
use crate::Data;
use crate::AppData;
#[derive(Deserialize, Serialize)]
pub struct MarkReadReq {
@@ -42,7 +42,7 @@ pub struct NotificationResp {
wrap = "crate::CheckLogin"
)]
pub async fn mark_read(
data: web::Data<Data>,
data: AppData,
payload: web::Json<MarkReadReq>,
id: Identity,
) -> ServiceResult<impl Responder> {