mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-01-21 01:12:28 -05:00
Merge pull request #1356 from BlackDex/fix-config-bug
Fixed small buggy in validation
This commit is contained in:
commit
46d31ee5f7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue