Small improvements around email change (#4415)

This commit is contained in:
Jacques B
2024-03-17 19:55:03 +01:00
committed by GitHub
parent ea04b6f151
commit 29144b2ce0
3 changed files with 4 additions and 2 deletions

View File

@@ -559,6 +559,8 @@ async fn post_email_token(data: JsonUpcase<EmailTokenData>, headers: Headers, mu
if let Err(e) = mail::send_change_email(&data.NewEmail, &token).await {
error!("Error sending change-email email: {:#?}", e);
}
} else {
debug!("Email change request for user ({}) to email ({}) with token ({})", user.uuid, data.NewEmail, token);
}
user.email_new = Some(data.NewEmail);