Skip to content

Commit

Permalink
[FIX] add ssl params
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Mar 23, 2020
1 parent 0f32f0d commit 6747b3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/locomotive/steam/middlewares/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def smtp
user_name: smtp_config['user_name'],
password: smtp_config['password'],
authentication: smtp_config['authentication'] || 'plain',
enable_starttls_auto: (smtp_config['enable_starttls_auto'] || "0").to_bool,
enable_starttls_auto: (smtp_config['enable_starttls_auto'] || '0').to_bool,
ssl: (smtp_config['ssl'] || '0').to_bool,
}
end
end
Expand Down
1 change: 1 addition & 0 deletions spec/unit/middlewares/auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
port: 25,
authentication: 'plain',
enable_starttls_auto: false,
ssl: false,
) }

context 'no smtp metafields' do
Expand Down

0 comments on commit 6747b3d

Please sign in to comment.