summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-14 21:23:10 +0300
committerGitHub <noreply@github.com>2020-04-14 21:23:10 +0300
commit13563e20e7b322dfb4534ef1096674e9e1c4b7de (patch)
tree15758c81968eaf1d0d65a09e0195ec9d9d4e9bfb /client/components
parentc5f782976b971fa3f2323e80a013bbf6a49c0596 (diff)
parent4f1330c777ae52f2b52eacda4f0945dee1cb51af (diff)
downloadwekan-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 'client/components')
-rw-r--r--client/components/main/layouts.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js
index e5c86d76..83678e73 100644
--- a/client/components/main/layouts.js
+++ b/client/components/main/layouts.js
@@ -31,6 +31,11 @@ Template.userFormsLayout.onCreated(function() {
return this.stop();
},
});
+ Meteor.call('isPasswordLoginDisabled', (_, result) => {
+ if (result) {
+ $('.at-pwd-form').hide();
+ }
+ });
});
Template.userFormsLayout.onRendered(() => {