mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 16:34:33 +00:00
Fix allowemailregister config typo and default should be true
This commit is contained in:
parent
3ee65cd38e
commit
6be875263a
@ -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 = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user