From 86b2b5148d107883b1dc0fd004c7ca2a8c8d653e Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Tue, 4 Apr 2023 16:13:45 +0200 Subject: [PATCH] server: remove default value for SMTP user Otherwise, not setting the user would default to "admin", which breaks the unauthenticated workflow. No user specified should mean unauthenticated. Fixes #520. --- server/src/infra/configuration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/infra/configuration.rs b/server/src/infra/configuration.rs index bf806d3..b483a57 100644 --- a/server/src/infra/configuration.rs +++ b/server/src/infra/configuration.rs @@ -25,7 +25,7 @@ pub struct MailOptions { pub server: String, #[builder(default = "587")] pub port: u16, - #[builder(default = r#""admin".to_string()"#)] + #[builder(default = r#"String::default()"#)] pub user: String, #[builder(default = r#"SecUtf8::from("")"#)] pub password: SecUtf8,