From de2449bfc42fe168f4e2730a66e831b80760403f Mon Sep 17 00:00:00 2001 From: "jinguk.kwon" Date: Sat, 29 Jan 2022 19:07:12 +0900 Subject: [PATCH] [matrix] update password config when it login --- type/__matrix_synapse/files/homeserver.yaml.sh | 2 ++ type/__matrix_synapse/man.rst | 5 +++++ type/__matrix_synapse/manifest | 1 + type/__matrix_synapse/parameter/boolean | 1 + .../__matrix_synapse/parameter/default/enable-passwordconfig | 1 + 5 files changed, 10 insertions(+) create mode 100644 type/__matrix_synapse/parameter/default/enable-passwordconfig diff --git a/type/__matrix_synapse/files/homeserver.yaml.sh b/type/__matrix_synapse/files/homeserver.yaml.sh index d719d3f..74ac69c 100755 --- a/type/__matrix_synapse/files/homeserver.yaml.sh +++ b/type/__matrix_synapse/files/homeserver.yaml.sh @@ -2254,6 +2254,8 @@ password_config: # Uncomment to disable password login # #enabled: false + enableed: ${ENABLE_PASSWORDCONFIG:?} + # Uncomment to disable authentication against the local password # database. This is ignored if \`enabled\` is false, and is only useful diff --git a/type/__matrix_synapse/man.rst b/type/__matrix_synapse/man.rst index 0589a5e..d7b5a32 100644 --- a/type/__matrix_synapse/man.rst +++ b/type/__matrix_synapse/man.rst @@ -286,6 +286,11 @@ worker-mode processes are called 'workers'. Please read the WORKER MODE section of this manpage before enabling, as extra work and considerations are required. +enable-passwordconfig + For removing user/password tab on login screen. + when it set saml2-login, it remove user/password tab on login-screen. + default is true. + PERFORMANCE ----------- diff --git a/type/__matrix_synapse/manifest b/type/__matrix_synapse/manifest index 6a89de6..42ced0d 100755 --- a/type/__matrix_synapse/manifest +++ b/type/__matrix_synapse/manifest @@ -169,6 +169,7 @@ fi # Registrations and users. ALLOW_GUEST_ACCESS=$(get_boolean_for 'allow-guest-access') ENABLE_REGISTRATIONS=$(get_boolean_for 'enable-registrations') +ENABLE_PASSWORDCONFIG=$(get_boolean_for 'enable-passwordconfig') USER_DIRECTORY_SEARCH_ALL_USERS=$(get_boolean_for 'user-directory-search-all-users') export ALLOW_GUEST_ACCESS ENABLE_REGISTRATIONS USER_DIRECTORY_SEARCH_ALL_USERS diff --git a/type/__matrix_synapse/parameter/boolean b/type/__matrix_synapse/parameter/boolean index ac87271..1bd2dc7 100644 --- a/type/__matrix_synapse/parameter/boolean +++ b/type/__matrix_synapse/parameter/boolean @@ -18,3 +18,4 @@ enable-message-retention-policy worker-mode enable-url-preview enable-3pid-lookups +enable-passwordconfig diff --git a/type/__matrix_synapse/parameter/default/enable-passwordconfig b/type/__matrix_synapse/parameter/default/enable-passwordconfig new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/type/__matrix_synapse/parameter/default/enable-passwordconfig @@ -0,0 +1 @@ +true