summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWu Cheng-Han2016-12-20 10:47:37 +0800
committerWu Cheng-Han2016-12-20 10:47:37 +0800
commitae2db1da16fbe96d4193c0ed6640fa2ede234f74 (patch)
treeca9e20b2c0292f51bf4c98d3f5f1d0c0e679a450 /lib
parent418a852cc483edf6c27eca24ffc8f95d8bcfe414 (diff)
Fix email option in config not parse correctly
Diffstat (limited to '')
-rw-r--r--lib/config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js
index 259ecdf5..2d977f51 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -98,7 +98,7 @@ var google = (process.env.HMD_GOOGLE_CLIENTID && process.env.HMD_GOOGLE_CLIENTSE
clientSecret: process.env.HMD_GOOGLE_CLIENTSECRET
} : config.google || false;
var imgur = process.env.HMD_IMGUR_CLIENTID || config.imgur || false;
-var email = process.env.HMD_EMAIL || config.email || false;
+var email = process.env.HMD_EMAIL ? (process.env.HMD_EMAIL === 'true') : !!config.email;
function getserverurl() {
var url = '';