summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorsalleman <salleman@wingit.math.u-bordeaux.fr>2020-04-13 21:06:27 +0200
committersalleman <salleman@wingit.math.u-bordeaux.fr>2020-04-13 21:06:27 +0200
commit3e817257ef6d7a527aaad040cdcdcc642caea3c1 (patch)
tree74f343783d3edcb8160addca5e1c48dca6b3597f /models
parent35ae07e2a65c5ab5ba6784cdb67631918a41ccc3 (diff)
downloadwekan-3e817257ef6d7a527aaad040cdcdcc642caea3c1.tar.gz
wekan-3e817257ef6d7a527aaad040cdcdcc642caea3c1.tar.bz2
wekan-3e817257ef6d7a527aaad040cdcdcc642caea3c1.zip
hide password auth with PASSWORD_LOGIN_ENABLED variable
Diffstat (limited to 'models')
-rw-r--r--models/settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/settings.js b/models/settings.js
index 0d671aa4..3bebd977 100644
--- a/models/settings.js
+++ b/models/settings.js
@@ -334,6 +334,11 @@ if (Meteor.isServer) {
getDefaultAuthenticationMethod() {
return process.env.DEFAULT_AUTHENTICATION_METHOD;
},
+
+ isPasswordDisabled() {
+ return process.env.PASSWORD_LOGIN_ENABLED === 'false';
+ },
+
});
}