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(Serialize, Deserialize)]
pub struct AddNotification {
@@ -36,7 +36,7 @@ pub struct AddNotification {
)]
pub async fn add_notification(
payload: web::Json<AddNotification>,
data: web::Data<Data>,
data: AppData,
id: Identity,
) -> ServiceResult<impl Responder> {
let sender = id.identity().unwrap();