From 85ed1e10bd3a0e344d5831f3d868cad4cd1e03e5 Mon Sep 17 00:00:00 2001 From: setsecurity Date: Tue, 8 Apr 2025 13:31:39 +0200 Subject: [PATCH] Update email.rs removed current_time --- src/api/core/two_factor/email.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/core/two_factor/email.rs b/src/api/core/two_factor/email.rs index 99762920..b33e7ec4 100644 --- a/src/api/core/two_factor/email.rs +++ b/src/api/core/two_factor/email.rs @@ -204,7 +204,7 @@ pub async fn validate_email_code_str(user_id: &UserId, token: &str, data: &str, .map_res("Two factor not found")?; let Some(issued_token) = &email_data.last_token else { err!( - format!("No token available! Server time: {} IP: {}", current_time.format("%F %T UTC"), ip.ip), + format!("No token available! IP: {}", ip.ip), ErrorEvent { event: EventType::UserFailedLogIn2fa } @@ -220,7 +220,7 @@ pub async fn validate_email_code_str(user_id: &UserId, token: &str, data: &str, twofactor.save(conn).await?; err!( - format!("Token is invalid! Server time: {} IP: {}", current_time.format("%F %T UTC"), ip.ip), + format!("Token is invalid! IP: {}", ip.ip), ErrorEvent { event: EventType::UserFailedLogIn2fa }