mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: in EmailSettingsValidator, unset smtp authentication when there's no user and password
net-smtp 0.5.0 bails when authentication is set without username/password followup-to:7b8d60dc,897be759
This commit is contained in:
committed by
Michael Brown
parent
dc996a1e5c
commit
a5ef7b1999
@@ -84,7 +84,7 @@ task "emails:test", [:email] => [:environment] do |_, args|
|
||||
domain: smtp[:domain] || "localhost",
|
||||
username: smtp[:user_name],
|
||||
password: smtp[:password],
|
||||
authentication: smtp[:authentication] || "plain",
|
||||
authentication: smtp[:authentication],
|
||||
)
|
||||
rescue Exception => e
|
||||
if e.to_s.match(/execution expired/)
|
||||
|
||||
Reference in New Issue
Block a user