Skip to content

Commit

Permalink
Fix test email notification with TLS (#4972)
Browse files Browse the repository at this point in the history
* Fix email notification test with TLS

* Update CHANGELOG.md
  • Loading branch information
ngosang authored and medariox committed Aug 26, 2018
1 parent 976dc7b commit 542d72c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Fixed UI not loading using edge browser, when using a reverse proxy (without an alternative port) ([#4928](https://github.com/pymedusa/Medusa/pull/4928))
- Fixed episode lookup with conflicting show IDs ([#4933](https://github.com/pymedusa/Medusa/pull/4933))
- Fixed error getting season scene exceptions on show page [#4964](https://github.com/pymedusa/Medusa/pull/4964)
- Fixed testing email notification with TLS ([#4972](https://github.com/pymedusa/Medusa/pull/4972))

-----

Expand Down
2 changes: 1 addition & 1 deletion themes-default/slim/static/js/config/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ MEDUSA.config.notifications = function() { // eslint-disable-line max-lines
host = host.length > 0 ? host : null;
let port = $('#email_port').val();
port = port.length > 0 ? port : null;
const tls = $('#email_tls').attr('checked') === undefined ? 0 : 1;
const tls = $('#email_tls').is(':checked') ? 1 : 0;
let from = $('#email_from').val();
from = from.length > 0 ? from : 'root@localhost';
const user = $('#email_user').val().trim();
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/config/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ MEDUSA.config.notifications = function() { // eslint-disable-line max-lines
host = host.length > 0 ? host : null;
let port = $('#email_port').val();
port = port.length > 0 ? port : null;
const tls = $('#email_tls').attr('checked') === undefined ? 0 : 1;
const tls = $('#email_tls').is(':checked') ? 1 : 0;
let from = $('#email_from').val();
from = from.length > 0 ? from : 'root@localhost';
const user = $('#email_user').val().trim();
Expand Down
2 changes: 1 addition & 1 deletion themes/light/assets/js/config/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ MEDUSA.config.notifications = function() { // eslint-disable-line max-lines
host = host.length > 0 ? host : null;
let port = $('#email_port').val();
port = port.length > 0 ? port : null;
const tls = $('#email_tls').attr('checked') === undefined ? 0 : 1;
const tls = $('#email_tls').is(':checked') ? 1 : 0;
let from = $('#email_from').val();
from = from.length > 0 ? from : 'root@localhost';
const user = $('#email_user').val().trim();
Expand Down

0 comments on commit 542d72c

Please sign in to comment.