This commit is contained in:
Greg Burri 2025-04-30 17:36:58 +02:00
parent 4f749c7d88
commit 983002b5ec
2 changed files with 6 additions and 5 deletions

View file

@ -38,7 +38,8 @@ pub const COOKIE_LANG_NAME: &str = "lang";
/// (cookie authentication, password reset, validation token). /// (cookie authentication, password reset, validation token).
pub const TOKEN_SIZE: usize = 32; 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, /// When sending a validation email,
/// the server has this duration to wait for a response from the SMTP server. /// the server has this duration to wait for a response from the SMTP server.

View file

@ -510,8 +510,8 @@ pub async fn ask_reset_password_post(
.render()?, .render()?,
) )
.into_response()), .into_response()),
Err(_) => { Err(error) => {
// error!("Email validation error: {}", error); // TODO: log error!("Email validation error: {}", error);
error_response( error_response(
AskResetPasswordError::UnableSendEmail, AskResetPasswordError::UnableSendEmail,
&form_data.email, &form_data.email,
@ -824,8 +824,8 @@ pub async fn edit_user_post(
Ok(()) => { Ok(()) => {
message = context.tr.t(Sentence::ProfileEmailSent); message = context.tr.t(Sentence::ProfileEmailSent);
} }
Err(_) => { Err(error) => {
// error!("Email validation error: {}", error); // TODO: log error!("Email validation error: {}", error);
return error_response( return error_response(
ProfileUpdateError::UnableSendEmail, ProfileUpdateError::UnableSendEmail,
&form_data, &form_data,