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 2023-04-04 16:13:45 +02:00 committed by nitnelave
parent b9e0e4a6dc
commit 86b2b5148d

View File

@ -25,7 +25,7 @@ pub struct MailOptions {
pub server: String, pub server: String,
#[builder(default = "587")] #[builder(default = "587")]
pub port: u16, pub port: u16,
#[builder(default = r#""admin".to_string()"#)] #[builder(default = r#"String::default()"#)]
pub user: String, pub user: String,
#[builder(default = r#"SecUtf8::from("")"#)] #[builder(default = r#"SecUtf8::from("")"#)]
pub password: SecUtf8, pub password: SecUtf8,