diff --git a/backend/src/consts.rs b/backend/src/consts.rs index 8733910..ee6f3a0 100644 --- a/backend/src/consts.rs +++ b/backend/src/consts.rs @@ -38,7 +38,8 @@ pub const COOKIE_LANG_NAME: &str = "lang"; /// (cookie authentication, password reset, validation token). pub const TOKEN_SIZE: usize = 32; -pub const EMAIL_ADDRESS: &str = "recipes@recipes.gburri.org"; +// TODO: Move it in conf.ron. +pub const EMAIL_ADDRESS: &str = "recipes@gburri.org"; /// When sending a validation email, /// the server has this duration to wait for a response from the SMTP server. diff --git a/backend/src/services/user.rs b/backend/src/services/user.rs index d91af60..2223569 100644 --- a/backend/src/services/user.rs +++ b/backend/src/services/user.rs @@ -510,8 +510,8 @@ pub async fn ask_reset_password_post( .render()?, ) .into_response()), - Err(_) => { - // error!("Email validation error: {}", error); // TODO: log + Err(error) => { + error!("Email validation error: {}", error); error_response( AskResetPasswordError::UnableSendEmail, &form_data.email, @@ -824,8 +824,8 @@ pub async fn edit_user_post( Ok(()) => { message = context.tr.t(Sentence::ProfileEmailSent); } - Err(_) => { - // error!("Email validation error: {}", error); // TODO: log + Err(error) => { + error!("Email validation error: {}", error); return error_response( ProfileUpdateError::UnableSendEmail, &form_data,