diff options
author | Wu Cheng-Han | 2017-01-12 23:53:22 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-01-12 23:53:22 +0800 |
commit | 6be875263a3c0ee849b023983032d8f55e28a2e0 (patch) | |
tree | c274ad07013e89cd4ec79ae4caeab684e979accb | |
parent | 3ee65cd38e2d3bef114079e971f9a158e2a6d2b2 (diff) |
Fix allowemailregister config typo and default should be true
Diffstat (limited to '')
-rw-r--r-- | lib/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js index 031c6741..f6e7f2c4 100644 --- a/lib/config.js +++ b/lib/config.js @@ -132,7 +132,7 @@ if (process.env.HMD_LDAP_PROVIDERNAME) { } var imgur = process.env.HMD_IMGUR_CLIENTID || config.imgur || false; var email = process.env.HMD_EMAIL ? (process.env.HMD_EMAIL === 'true') : !!config.email; -var allowemailregister = process.env.HMD_ALLOW_EMAIL_REGISTER ? (process.env.HMD_HMD_ALLOW_EMAIL_REGISTER === 'true') : !!config.allowemailregister; +var allowemailregister = process.env.HMD_ALLOW_EMAIL_REGISTER ? (process.env.HMD_ALLOW_EMAIL_REGISTER === 'true') : ((typeof config.allowemailregister === 'boolean') ? config.allowemailregister : true); function getserverurl() { var url = ''; |