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

@@ -16,12 +16,12 @@
*/
use actix_identity::Identity;
use actix_web::{web, HttpResponse, Responder};
use actix_web::{HttpResponse, Responder};
use serde::{Deserialize, Serialize};
use sqlx::types::time::OffsetDateTime;
use crate::errors::*;
use crate::Data;
use crate::AppData;
pub struct Notification {
pub name: String,
@@ -57,7 +57,7 @@ impl From<Notification> for NotificationResp {
wrap = "crate::CheckLogin"
)]
pub async fn get_notification(
data: web::Data<Data>,
data: AppData,
id: Identity,
) -> ServiceResult<impl Responder> {
let receiver = id.identity().unwrap();