api: add new config SMTP_PORT
This commit is contained in:
@@ -12,7 +12,8 @@ func smtpConfigure() error {
|
||||
username := os.Getenv("SMTP_USERNAME")
|
||||
password := os.Getenv("SMTP_PASSWORD")
|
||||
host := os.Getenv("SMTP_HOST")
|
||||
if username == "" || password == "" || host == "" {
|
||||
port := os.Getenv("SMTP_PORT")
|
||||
if username == "" || password == "" || host == "" || port == "" {
|
||||
logger.Warningf("smtp not configured, no emails will be sent")
|
||||
smtpConfigured = false
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user