geforkt von mirrored/vaultwarden
Fixed small buggy in validation
Dieser Commit ist enthalten in:
Ursprung
d41350050b
Commit
e794b397d3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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")
|
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")
|
err!("SMTP_FROM does not contain a mandatory @ sign")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren