From d42f6462d4998ac68a4dedef0c2310713487de81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 19 Mar 2024 23:34:23 +0100 Subject: [PATCH] Force enable password authentication as some client need it to work correctly --- config_panel.toml | 13 +++++++------ scripts/_common.sh | 3 +++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 4a287659..9bbcd9eb 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -14,12 +14,13 @@ services = ["__APP__"] no = "false" help = "Defaults to 'false'. If 'true', it is highly recommended to use either captcha, email, or token-based verification to avoid SPAM." - [main.welcome.password_enabled] - ask = "Enable Password Login" - type = "boolean" - yes = "true" - no = "false" - help = "If disabled, Login with Non-YunoHost Users impossible. But it simplies Login process if your Matrix server only has YunoHost SSO Users." + # Disabled for matrix V2 because some client like Element X don't support cas and so require to have password authentication enabled + # [main.welcome.password_enabled] + # ask = "Enable Password Login" + # type = "boolean" + # yes = "true" + # no = "false" + # help = "If disabled, Login with Non-YunoHost Users impossible. But it simplies Login process if your Matrix server only has YunoHost SSO Users." # Temporary disable the visible flag due of https://github.com/YunoHost/issues/issues/2331 # visible = "! enable_registration" diff --git a/scripts/_common.sh b/scripts/_common.sh index e3b18ac0..5cd7494f 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -109,6 +109,9 @@ configure_synapse() { turn_server_config='turn_uris: [ "turn:'$domain:$port_turnserver_tls'", "turn:'$domain:$port_turnserver_alt_tls'" ]' fi + # Force enable it because some client like Element X don't support CAS and so require to have password authentication enabled + password_enabled=true + ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" sed -i "s|_DOMAIN_WHITELIST_CLIENT_|$domain_whitelist_client|g" /etc/matrix-$app/homeserver.yaml sed -i "s|_AUTO_JOIN_ROOMS_SED_PARAM_|$auto_join_rooms_sed_param|g" /etc/matrix-$app/homeserver.yaml