summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/main/layouts.js22
1 files changed, 1 insertions, 21 deletions
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js
index 83678e73..be1402e9 100644
--- a/client/components/main/layouts.js
+++ b/client/components/main/layouts.js
@@ -164,25 +164,5 @@ function getAuthenticationMethod(
if (displayAuthenticationMethod) {
return $('.select-authentication').val();
}
- return getUserAuthenticationMethod(defaultAuthenticationMethod, match);
-}
-
-function getUserAuthenticationMethod(defaultAuthenticationMethod, match) {
- return new Promise(resolve => {
- try {
- Meteor.subscribe('user-authenticationMethod', match, {
- onReady() {
- const user = Users.findOne();
-
- const authenticationMethod = user
- ? user.authenticationMethod
- : defaultAuthenticationMethod;
-
- resolve(authenticationMethod);
- },
- });
- } catch (error) {
- resolve(defaultAuthenticationMethod);
- }
- });
+ return defaultAuthenticationMethod;
}