Merge pull request #3680 from giorgiga/trimsmtppasswordfilecontents
Newlines in smtp password file are now ignored
This commit is contained in:
commit
7a3c189315
|
@ -368,7 +368,7 @@ func (n *Email) getPassword() (string, error) {
|
|||
if err != nil {
|
||||
return "", fmt.Errorf("could not read %s: %w", n.conf.AuthPasswordFile, err)
|
||||
}
|
||||
return string(content), nil
|
||||
return strings.TrimSpace(string(content)), nil
|
||||
}
|
||||
return string(n.conf.AuthPassword), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue