Only selectively show login elements once settings is loaded

Fixes #5029
This commit is contained in:
Johannes Zellner 2023-07-30 13:42:20 +02:00
parent 25c8f07c62
commit ab19bbce8e
4 changed files with 11 additions and 9 deletions

View file

@ -521,8 +521,8 @@ if (Meteor.isServer) {
return process.env.DEFAULT_AUTHENTICATION_METHOD;
},
isPasswordLoginDisabled() {
return process.env.PASSWORD_LOGIN_ENABLED === 'false';
isPasswordLoginEnabled() {
return !(process.env.PASSWORD_LOGIN_ENABLED === 'false');
},
isOidcRedirectionEnabled(){
return process.env.OIDC_REDIRECTION_ENABLED === 'true' && Object.keys(loadOidcConfig("oidc")).length > 0;