mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 22:28:49 +01:00
Set mail-from to environment immediately after changed,
allow user set a blank username&password pair in SMTP setting.
This commit is contained in:
parent
a64e9af1d3
commit
72c3651be4
2 changed files with 22 additions and 5 deletions
|
|
@ -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}});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue