summaryrefslogtreecommitdiffstats
path: root/models/settings.js
diff options
context:
space:
mode:
authorPierre Kuhner <pkuhner@users.noreply.github.com>2017-08-24 17:10:50 +0200
committerGitHub <noreply@github.com>2017-08-24 17:10:50 +0200
commit4d4c127b991e04a060985bb2a5589c56a29c7f1c (patch)
tree68e856d1619a07fe21ce434edec2756e771e2978 /models/settings.js
parentc99a950979cb1a6a5e449b31623fbb6a18ad6112 (diff)
downloadwekan-4d4c127b991e04a060985bb2a5589c56a29c7f1c.tar.gz
wekan-4d4c127b991e04a060985bb2a5589c56a29c7f1c.tar.bz2
wekan-4d4c127b991e04a060985bb2a5589c56a29c7f1c.zip
Fix template literals syntax
Diffstat (limited to 'models/settings.js')
-rw-r--r--models/settings.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/settings.js b/models/settings.js
index 089c6783..a490d9c5 100644
--- a/models/settings.js
+++ b/models/settings.js
@@ -45,7 +45,7 @@ Settings.helpers({
if (!this.mailServer.username && !this.mailServer.password) {
return `${protocol}${this.mailServer.host}:${this.mailServer.port}/`;
}
- return `${protocol}${this.mailServer.username}:encodeURIComponent(${this.mailServer.password})@${this.mailServer.host}:${this.mailServer.port}/`;
+ return `${protocol}${this.mailServer.username}:${encodeURIComponent(this.mailServer.password)}@${this.mailServer.host}:${this.mailServer.port}/`;
},
});
Settings.allow({
@@ -84,7 +84,7 @@ if (Meteor.isServer) {
if (!doc.mailServer.username && !doc.mailServer.password) {
process.env.MAIL_URL = `${protocol}${doc.mailServer.host}:${doc.mailServer.port}/`;
} else {
- process.env.MAIL_URL = `${protocol}${doc.mailServer.username}:encodeURIComponent(${doc.mailServer.password})@${doc.mailServer.host}:${doc.mailServer.port}/`;
+ process.env.MAIL_URL = `${protocol}${doc.mailServer.username}:${encodeURIComponent(doc.mailServer.password)}@${doc.mailServer.host}:${doc.mailServer.port}/`;
}
Accounts.emailTemplates.from = doc.mailServer.from;
}