diff --git a/config_panel.toml b/config_panel.toml index 4a28765..9bbcd9e 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 e3b18ac..5cd7494 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