From eb60011ebd8d8963d14bb265ae172afab13a1cad Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Mon, 3 Apr 2023 08:41:47 -0400 Subject: [PATCH] fix and finish totp authenticators --- trifid-api/src/routes/v1/verify_totp_authenticators.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trifid-api/src/routes/v1/verify_totp_authenticators.rs b/trifid-api/src/routes/v1/verify_totp_authenticators.rs index 51f4870..591e58c 100644 --- a/trifid-api/src/routes/v1/verify_totp_authenticators.rs +++ b/trifid-api/src/routes/v1/verify_totp_authenticators.rs @@ -1,6 +1,6 @@ use actix_web::{HttpRequest, HttpResponse, post}; use actix_web::web::{Data, Json}; -use log::error; +use log::{debug, error}; use serde::{Serialize, Deserialize}; use trifid_api_entities::entity::totp_authenticator; use crate::AppState; @@ -120,7 +120,9 @@ pub async fn verify_totp_authenticators_request(req: Json valid, Err(e) => { error!("system time error: {}", e); @@ -137,6 +139,7 @@ pub async fn verify_totp_authenticators_request(req: Json