diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-14 21:23:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 21:23:10 +0300 |
commit | 13563e20e7b322dfb4534ef1096674e9e1c4b7de (patch) | |
tree | 15758c81968eaf1d0d65a09e0195ec9d9d4e9bfb /models | |
parent | c5f782976b971fa3f2323e80a013bbf6a49c0596 (diff) | |
parent | 4f1330c777ae52f2b52eacda4f0945dee1cb51af (diff) | |
download | wekan-13563e20e7b322dfb4534ef1096674e9e1c4b7de.tar.gz wekan-13563e20e7b322dfb4534ef1096674e9e1c4b7de.tar.bz2 wekan-13563e20e7b322dfb4534ef1096674e9e1c4b7de.zip |
Merge pull request #3014 from salleman33/master
hide password auth with PASSWORD_LOGIN_ENABLED variable
Diffstat (limited to 'models')
-rw-r--r-- | models/settings.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/settings.js b/models/settings.js index 0d671aa4..03ef9052 100644 --- a/models/settings.js +++ b/models/settings.js @@ -334,6 +334,11 @@ if (Meteor.isServer) { getDefaultAuthenticationMethod() { return process.env.DEFAULT_AUTHENTICATION_METHOD; }, + + isPasswordLoginDisabled() { + return process.env.PASSWORD_LOGIN_ENABLED === 'false'; + }, + }); } |