mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Only selectively show login elements once settings is loaded
Fixes #5029
This commit is contained in:
parent
25c8f07c62
commit
ab19bbce8e
4 changed files with 11 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue