Browse Source

Fixed small buggy in validation

pull/1356/head
BlackDex 4 years ago
parent
commit
e794b397d3
  1. 2
      src/config.rs

2
src/config.rs

@ -557,7 +557,7 @@ fn validate_config(cfg: &ConfigItems) -> Result<(), Error> {
err!("Both `SMTP_HOST` and `SMTP_FROM` need to be set for email support")
}
if !cfg.smtp_from.contains('@') {
if cfg.smtp_host.is_some() && !cfg.smtp_from.contains('@') {
err!("SMTP_FROM does not contain a mandatory @ sign")
}

Loading…
Cancel
Save