diff options
author | lkisme <lkisme@me.com> | 2017-03-09 23:29:48 +0800 |
---|---|---|
committer | lkisme <lkisme@me.com> | 2017-03-09 23:29:48 +0800 |
commit | 72c3651be4365d3b903d694e55a3ea373d260709 (patch) | |
tree | 2b9386257d2ecc9e4c917231a835ed20d1f65851 /client/components/settings/settingBody.js | |
parent | a64e9af1d358aceabb066b5af771b3b4b33f2a12 (diff) | |
download | wekan-72c3651be4365d3b903d694e55a3ea373d260709.tar.gz wekan-72c3651be4365d3b903d694e55a3ea373d260709.tar.bz2 wekan-72c3651be4365d3b903d694e55a3ea373d260709.zip |
Set mail-from to environment immediately after changed,
allow user set a blank username&password pair in SMTP setting.
Diffstat (limited to 'client/components/settings/settingBody.js')
-rw-r--r-- | client/components/settings/settingBody.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index 5ae982f7..0dc3c5f0 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -103,8 +103,8 @@ BlazeComponent.extendComponent({ try{ const host = this.checkField('#mail-server-host'); const port = this.checkField('#mail-server-port'); - const username = this.checkField('#mail-server-username'); - const password = this.checkField('#mail-server-password'); + const username = $('#mail-server-username').val().trim(); + const password = $('#mail-server-password').val().trim(); const from = this.checkField('#mail-server-from'); Settings.update(Settings.findOne()._id, {$set:{'mailServer.host':host, 'mailServer.port': port, 'mailServer.username': username, 'mailServer.password': password, 'mailServer.from': from}}); |