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.
This commit is contained in:
Valentin Tolmer authored and nitnelave committed 2023-04-04 16:27:44 +02:00
1 parent b9e0e4a6dc
commit 86b2b5148d
1 file changed
+1 -1
+1 -1
View File
@@ -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,