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).
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.

View file

@ -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,