mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-09 21:23:58 +00:00
Update email.rs
removed current_time
This commit is contained in:
parent
5eca78655e
commit
6847881d33
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue