From a8f41f7994b0c3a43aa4b82be06d35911eacab4d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 18 Jul 2018 00:46:45 +0300 Subject: Remove SMTP settings from Admin Panel, because they are set in environment variable settings like source/snap/docker already, and password was exposed in plain text. Thanks to xet7 ! Closes #1783 --- client/components/settings/settingBody.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'client/components/settings/settingBody.js') diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index 7230d893..5995cbf1 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -20,7 +20,7 @@ BlazeComponent.extendComponent({ setLoading(w) { this.loading.set(w); }, - + /* checkField(selector) { const value = $(selector).val(); if (!value || value.trim() === '') { @@ -30,7 +30,7 @@ BlazeComponent.extendComponent({ return value; } }, - +*/ currentSetting() { return Settings.findOne(); }, @@ -55,9 +55,11 @@ BlazeComponent.extendComponent({ $('.invite-people').slideDown(); } }, + /* toggleTLS() { $('#mail-server-tls').toggleClass('is-checked'); }, +*/ switchMenu(event) { const target = $(event.target); if (!target.hasClass('active')) { @@ -104,6 +106,7 @@ BlazeComponent.extendComponent({ } }, + /* saveMailServerInfo() { this.setLoading(true); $('li').removeClass('has-error'); @@ -128,7 +131,7 @@ BlazeComponent.extendComponent({ } }, - +*/ sendSMTPTestEmail() { Meteor.call('sendSMTPTestEmail', (err, ret) => { if (!err && ret) { /* eslint-disable no-console */ @@ -148,11 +151,15 @@ BlazeComponent.extendComponent({ events() { return [{ 'click a.js-toggle-registration': this.toggleRegistration, + /* 'click a.js-toggle-tls': this.toggleTLS, +*/ 'click a.js-setting-menu': this.switchMenu, 'click a.js-toggle-board-choose': this.checkBoard, 'click button.js-email-invite': this.inviteThroughEmail, + /* 'click button.js-save': this.saveMailServerInfo, +*/ 'click button.js-send-smtp-test-email': this.sendSMTPTestEmail, }]; }, -- cgit v1.2.3-1-g7c22